aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorLibravatar Dominik Guzei <dominik.guzei@gmail.com>2019-03-19 11:46:30 +0100
committerLibravatar Dominik Guzei <dominik.guzei@gmail.com>2019-03-19 11:46:30 +0100
commitab9ae1829e51e463d644ff369ebc3434f2f42c81 (patch)
tree639b4dc0c0d519fbd2bf99c869b00bce1ccfb5cf /src/lib
parentmerge-in webview unmounting fix (diff)
parentMerge pull request #1338 from meetfranz/chore/app-feature-helpers (diff)
downloadferdium-app-ab9ae1829e51e463d644ff369ebc3434f2f42c81.tar.gz
ferdium-app-ab9ae1829e51e463d644ff369ebc3434f2f42c81.tar.zst
ferdium-app-ab9ae1829e51e463d644ff369ebc3434f2f42c81.zip
fix conflicts with latest develop
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Tray.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/Tray.js b/src/lib/Tray.js
index 669b02709..192e24796 100644
--- a/src/lib/Tray.js
+++ b/src/lib/Tray.js
@@ -22,7 +22,11 @@ export default class TrayIcon {
22 { 22 {
23 label: 'Show Franz', 23 label: 'Show Franz',
24 click() { 24 click() {
25 if (app.mainWindow.isMinimized()) {
26 app.mainWindow.restore();
27 }
25 app.mainWindow.show(); 28 app.mainWindow.show();
29 app.mainWindow.focus();
26 }, 30 },
27 }, { 31 }, {
28 label: 'Quit Franz', 32 label: 'Quit Franz',
@@ -36,7 +40,11 @@ export default class TrayIcon {
36 this.trayIcon.setContextMenu(trayMenu); 40 this.trayIcon.setContextMenu(trayMenu);
37 41
38 this.trayIcon.on('click', () => { 42 this.trayIcon.on('click', () => {
43 if (app.mainWindow.isMinimized()) {
44 app.mainWindow.restore();
45 }
39 app.mainWindow.show(); 46 app.mainWindow.show();
47 app.mainWindow.focus();
40 }); 48 });
41 49
42 if (process.platform === 'darwin') { 50 if (process.platform === 'darwin') {