This commit is contained in:
Araxeus
2021-10-26 19:23:10 +03:00
parent 02cb39602f
commit a70364facf
2 changed files with 7 additions and 6 deletions

View File

@ -348,10 +348,10 @@ app.on("ready", () => {
}); });
} }
if(config.get("options.hideMenu") && !config.get("options.hideMenuWarned")) { if (config.get("options.hideMenu") && !config.get("options.hideMenuWarned")) {
electron.dialog.showMessageBox(mainWindow, { electron.dialog.showMessageBox(mainWindow, {
type: 'info', type: 'info', title: 'Hide Menu Enabled',
title: 'Hide Menu Enabled', message: "Menu is hidden, use 'Alt' to show it (or 'Escape' if using in-app-menu)" message: "Menu is hidden, use 'Alt' to show it (or 'Escape' if using in-app-menu)"
}); });
config.set("options.hideMenuWarned", true); config.set("options.hideMenuWarned", true);
} }

View File

@ -95,10 +95,11 @@ const mainMenuTemplate = (win) => {
checked: config.get("options.hideMenu"), checked: config.get("options.hideMenu"),
click: (item) => { click: (item) => {
config.set("options.hideMenu", item.checked); config.set("options.hideMenu", item.checked);
if(item.checked && !config.get("options.hideMenuWarned")) { if (item.checked && !config.get("options.hideMenuWarned")) {
dialog.showMessageBox(win, { dialog.showMessageBox(win, {
type: 'info', type: 'info', title: 'Hide Menu Enabled',
title: 'Hide Menu Enabled', message: "Menu will be hidden on next launch, use 'Alt' to show it (or 'Escape' if using in-app-menu)"}); message: "Menu will be hidden on next launch, use 'Alt' to show it (or 'Escape' if using in-app-menu)"
});
} }
}, },
}, },