|
@@ -3,12 +3,14 @@ import { safeStorageStore } from '../stores/safeStorage.store';
|
|
|
import { uploadStatusStore } from '../stores/upload.store';
|
|
|
import { logError } from '../services/logging';
|
|
|
import { userPreferencesStore } from '../stores/userPreferences.store';
|
|
|
+import { watchStore } from '../stores/watch.store';
|
|
|
|
|
|
export const clearElectronStore = () => {
|
|
|
try {
|
|
|
uploadStatusStore.clear();
|
|
|
keysStore.clear();
|
|
|
safeStorageStore.clear();
|
|
|
+ watchStore.clear();
|
|
|
userPreferencesStore.delete('optOutOfCrashReports');
|
|
|
} catch (e) {
|
|
|
logError(e, 'error while clearing electron store');
|