You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +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');
|
||||
return;
|
||||
}
|
||||
this.mainWindow().show();
|
||||
if (!this.mainWindow().isVisible()) {
|
||||
this.mainWindow().show();
|
||||
} else {
|
||||
this.mainWindow().hide();
|
||||
}
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Cannot create tray', error);
|
||||
|
||||
Reference in New Issue
Block a user