mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-05 22:43:17 +00:00
Relaunch app on clearing app data
This commit is contained in:
@@ -371,7 +371,7 @@ class AppMenu {
|
|||||||
const getAppPath = path.join(app.getPath('appData'), appName, 'window-state.json');
|
const getAppPath = path.join(app.getPath('appData'), appName, 'window-state.json');
|
||||||
|
|
||||||
fs.unlink(getAppPath, () => {
|
fs.unlink(getAppPath, () => {
|
||||||
setTimeout(() => AppMenu.sendAction('hard-reload'), 1000);
|
setTimeout(() => app.relaunch(), app.exit(), 1000);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user