fix: resolve comments

This commit is contained in:
AbhinRustagi
2026-05-08 05:24:40 +05:30
parent b801c1ccea
commit 25cfd2777f
4 changed files with 32 additions and 7 deletions
+8
View File
@@ -112,6 +112,14 @@ export function parentDirectoryOf(filePath: string): string | null {
return filePath.slice(0, lastSep);
}
/**
* Returns the remembered export folder as `string | undefined`, suitable for
* passing directly to IPC handlers that treat absence as "use the default".
*/
export function getExportFolder(): string | undefined {
return loadUserPreferences().exportFolder ?? undefined;
}
/**
* Persist user preferences to localStorage.
* Only the explicitly provided fields are updated.