1
0
mirror of https://github.com/rhysd/Mstdn.git synced 2025-04-03 21:25:42 +02:00

use minimize() instead of hide() on Windows

to restore window state correctly.

https://twitter.com/raa0121/status/856701302285287424
This commit is contained in:
rhysd 2017-04-25 16:45:11 +09:00
parent 282b24d7b0
commit 73c0a73e14

View File

@ -101,7 +101,7 @@ export default class Window {
this.browser.removeAllListeners();
if (this.menubar) {
// Note:
// menubar.windowClear() won't be called because all listners was removed
// menubar.windowClear() won't be called because all listners were removed
delete this.menubar.window;
}
this.browser.close();
@ -121,10 +121,9 @@ export default class Window {
log.debug('Toggle window: shown -> hidden');
if (IS_DARWIN) {
app.hide();
} else if (IS_WINDOWS) {
this.browser.minimize();
} else {
if (IS_WINDOWS) {
this.browser.blur();
}
this.browser.hide();
}
} else {