You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>
This commit is contained in:
@@ -622,7 +622,11 @@ export default class ElectronAppWrapper {
|
|||||||
console.warn('The window object was not available during the click event from tray icon');
|
console.warn('The window object was not available during the click event from tray icon');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.mainWindow().show();
|
if (!this.mainWindow().isVisible()) {
|
||||||
|
this.mainWindow().show();
|
||||||
|
} else {
|
||||||
|
this.mainWindow().hide();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Cannot create tray', error);
|
console.error('Cannot create tray', error);
|
||||||
|
|||||||
Reference in New Issue
Block a user