We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28e993e commit 777814aCopy full SHA for 777814a
1 file changed
src/index.js
@@ -31,7 +31,6 @@ if (process.platform !== 'darwin') {
31
if (mainWindow.isMinimized()) mainWindow.restore();
32
mainWindow.focus();
33
}
34
- return true;
35
});
36
37
if (isSecondInstance) {
@@ -111,6 +110,13 @@ const createWindow = async () => {
111
110
app.isMaximized = true;
112
113
+ mainWindow.on('close', (e) => {
114
+ if (settings.get('minimizeToSystemTray')) {
115
+ e.preventDefault();
116
+ mainWindow.minimize();
117
+ }
118
+ });
119
+
120
mainWindow.on('unmaximize', () => {
121
app.isMaximized = false;
122
0 commit comments