Merge pull request #456 from Araxeus/hide-menu-initial-alert

alert on initial hide-menu enabled
This commit is contained in:
th-ch
2021-11-01 11:44:27 +01:00
committed by GitHub
3 changed files with 19 additions and 2 deletions

View File

@ -341,6 +341,14 @@ app.on("ready", () => {
});
}
if (config.get("options.hideMenu") && !config.get("options.hideMenuWarned")) {
electron.dialog.showMessageBox(mainWindow, {
type: 'info', title: 'Hide Menu Enabled',
message: "Menu is hidden, use 'Alt' to show it (or 'Escape' if using in-app-menu)"
});
config.set("options.hideMenuWarned", true);
}
// Optimized for Mac OS X
if (is.macOS() && !config.get("options.appVisible")) {
app.dock.hide();