mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Merge branch 'master' into development
This catches the development branch up with v1.0.39 in master.
This commit is contained in:
16
main.js
16
main.js
@@ -24,6 +24,10 @@ app.setAppUserModelId(aumid);
|
||||
// be closed automatically when the JavaScript object is garbage collected.
|
||||
let mainWindow;
|
||||
|
||||
function getMainWindow() {
|
||||
return mainWindow;
|
||||
}
|
||||
|
||||
const config = require("./app/config");
|
||||
|
||||
// Very important to put before the single instance check, since it is based on the
|
||||
@@ -249,7 +253,8 @@ function showAbout() {
|
||||
webPreferences: {
|
||||
nodeIntegration: false,
|
||||
preload: path.join(__dirname, 'preload.js')
|
||||
}
|
||||
},
|
||||
parent: mainWindow,
|
||||
};
|
||||
|
||||
aboutWindow = new BrowserWindow(options);
|
||||
@@ -279,7 +284,7 @@ app.on('ready', function() {
|
||||
locale = loadLocale();
|
||||
}
|
||||
|
||||
autoUpdate.initialize(locale.messages);
|
||||
autoUpdate.initialize(getMainWindow, locale.messages);
|
||||
|
||||
createWindow();
|
||||
|
||||
@@ -356,3 +361,10 @@ ipc.on("set-auto-hide-menu-bar", function(event, autoHide) {
|
||||
ipc.on("set-menu-bar-visibility", function(event, visibility) {
|
||||
mainWindow.setMenuBarVisibility(visibility);
|
||||
});
|
||||
|
||||
ipc.on("close-about", function() {
|
||||
if (aboutWindow) {
|
||||
aboutWindow.close();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user