reset window position

This commit is contained in:
akashnimare
2017-09-07 03:29:04 +05:30
parent f426c932b0
commit 306feb2eff
3 changed files with 17 additions and 3 deletions

View File

@@ -371,7 +371,7 @@ class AppMenu {
const getAppPath = path.join(app.getPath('appData'), appName, 'window-state.json');
fs.unlink(getAppPath, () => {
setTimeout(() => app.relaunch(), app.exit(), 1000);
setTimeout(() => AppMenu.sendAction('clear-app-data'), 1000);
});
}