mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-03-03 23:18:43 +00:00
Add Show option under the Window menu
Window > Show will reveal the mainWindow after it has been closed. // FREEBIE
This commit is contained in:
12
main.js
12
main.js
@@ -157,11 +157,15 @@ app.on('ready', function() {
|
||||
setInterval(function() { autoUpdater.checkForUpdates(); }, autoUpdaterInterval);
|
||||
}
|
||||
|
||||
let template = require('./menu.js');
|
||||
const menu = Menu.buildFromTemplate(template)
|
||||
Menu.setApplicationMenu(menu)
|
||||
|
||||
createWindow();
|
||||
|
||||
let template = require('./menu.js');
|
||||
template[3].submenu[3].click = function() {
|
||||
mainWindow.show();
|
||||
};
|
||||
const menu = Menu.buildFromTemplate(template);
|
||||
Menu.setApplicationMenu(menu);
|
||||
|
||||
})
|
||||
|
||||
app.on('before-quit', function() {
|
||||
|
||||
Reference in New Issue
Block a user