You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
This commit is contained in:
@@ -407,7 +407,17 @@ export default class ElectronAppWrapper {
|
||||
isGoingToExit = true;
|
||||
} else {
|
||||
event.preventDefault();
|
||||
this.hide();
|
||||
|
||||
const w = this.win_;
|
||||
if (!w) return;
|
||||
|
||||
if (w.isFullScreen()) {
|
||||
// leave fullscreen, then hide
|
||||
w.once('leave-full-screen', () => w.hide());
|
||||
w.setFullScreen(false);
|
||||
} else {
|
||||
w.hide();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
const hasBackgroundWindows = this.secondaryWindows_.size > 0;
|
||||
|
||||
Reference in New Issue
Block a user