mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Don't attempt to maximize or fullscreen if using tray icon
This commit is contained in:
4
main.js
4
main.js
@@ -292,10 +292,10 @@ function createWindow() {
|
||||
|
||||
// Create the browser window.
|
||||
mainWindow = new BrowserWindow(windowOptions);
|
||||
if (windowConfig && windowConfig.maximized) {
|
||||
if (!usingTrayIcon && windowConfig && windowConfig.maximized) {
|
||||
mainWindow.maximize();
|
||||
}
|
||||
if (windowConfig && windowConfig.fullscreen) {
|
||||
if (!usingTrayIcon && windowConfig && windowConfig.fullscreen) {
|
||||
mainWindow.setFullScreen(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user