Add watcher polling settings.

This commit is contained in:
Patrick Fic
2025-03-26 11:32:41 -07:00
parent 791c518920
commit e2ccbf7007
11 changed files with 247 additions and 65 deletions

View File

@@ -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;