You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -302,24 +303,7 @@ export function SettingsView() {
302
303
variant="soft"
303
304
color="red"
304
305
size="1"
305
-
onClick={()=>{
306
-
constconfirmed=window.confirm(
307
-
"Are you sure you want to clear all application storage?\n\nThis will remove:\n• All registered folders\n• UI state (sidebar preferences, etc.)\n• Task directory mappings\n\nYour files will not be deleted from your computer.",
308
-
);
309
-
310
-
if(confirmed){
311
-
window.electronAPI.folders
312
-
.clearAllData()
313
-
.then(()=>{
314
-
localStorage.clear();
315
-
window.location.reload();
316
-
})
317
-
.catch((error: unknown)=>{
318
-
log.error("Failed to clear storage:",error);
319
-
alert("Failed to clear storage. Please try again.");
"Are you sure you want to clear all application storage?\n\nThis will remove:\n• All registered folders\n• UI state (sidebar preferences, etc.)\n• Task directory mappings\n\nYour files will not be deleted from your computer.",
8
+
);
9
+
10
+
if(confirmed){
11
+
window.electronAPI.folders
12
+
.clearAllData()
13
+
.then(()=>{
14
+
localStorage.clear();
15
+
window.location.reload();
16
+
})
17
+
.catch((error: unknown)=>{
18
+
log.error("Failed to clear storage:",error);
19
+
alert("Failed to clear storage. Please try again.");
0 commit comments