Add watcher polling settings.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import Store from "electron-store";
|
||||
|
||||
const store = new Store({
|
||||
defaults: {
|
||||
settings: {
|
||||
@@ -6,7 +7,7 @@ const store = new Store({
|
||||
runWatcherOnStartup: true,
|
||||
polling: {
|
||||
enabled: false,
|
||||
pollingInterval: 30000,
|
||||
interval: 30000,
|
||||
},
|
||||
},
|
||||
app: {
|
||||
@@ -25,4 +26,10 @@ const store = new Store({
|
||||
},
|
||||
});
|
||||
|
||||
// store.onDidAnyChange((newValue, oldValue) => {
|
||||
// console.log("Settings changed", newValue, oldValue);
|
||||
// const mainWindow = BrowserWindow.getAllWindows()[0];
|
||||
// mainWindow?.webContents.send(ipcTypes.toRenderer.store.didChange, newValue);
|
||||
// });
|
||||
|
||||
export default store;
|
||||
|
||||
Reference in New Issue
Block a user