From 04aab35ba2219cbf5ee837716a3ff6ad1e16ca3d Mon Sep 17 00:00:00 2001 From: rhysd Date: Thu, 20 Apr 2017 12:22:45 +0900 Subject: [PATCH] remember window state while switching account --- main/window.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/main/window.ts b/main/window.ts index 433ba82..6aa7785 100644 --- a/main/window.ts +++ b/main/window.ts @@ -82,6 +82,7 @@ export default class Window { close() { log.debug('Closing window:', this.account); + this.state.saveState(); this.state.unmanage(); this.browser.webContents.removeAllListeners(); this.browser.removeAllListeners();