mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-10 22:32:17 +02:00
add migration to clear all original store settings (#1396)
This commit is contained in:
@@ -11,6 +11,9 @@ export const store = new Store({
|
||||
'>=0.21.2': (store) => {
|
||||
store.set('window_bar_style', 'linux');
|
||||
},
|
||||
'>=1.0.0': (store) => {
|
||||
store.clear();
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -693,3 +693,11 @@ if (!ipcMain.eventNames().includes('open-item')) {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// Register 'open-application-directory' handler globally, ensuring it is only registered once
|
||||
if (!ipcMain.eventNames().includes('open-application-directory')) {
|
||||
ipcMain.handle('open-application-directory', async () => {
|
||||
const userDataPath = app.getPath('userData');
|
||||
shell.openPath(userDataPath);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user