π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
update names
Abhinavd65937c9f1d3
diff --git a/apps/photos/src/components/Sidebar/Preferences/CacheDirectory.tsx b/apps/photos/src/components/Sidebar/Preferences/CacheDirectory.tsxindex a5e8c3bebf..08cd75e0d1 100644--- a/apps/photos/src/components/Sidebar/Preferences/CacheDirectory.tsx+++ b/apps/photos/src/components/Sidebar/Preferences/CacheDirectory.tsx@@ -17,7 +17,7 @@ export default function CacheDirectory() {const main = async () => {if (isElectron()) {const customCacheDirectory =- await ElectronAPIs.getUserCacheDirectory();+ await ElectronAPIs.getCacheDirectory();setCacheDirectory(customCacheDirectory);}};@@ -34,7 +34,7 @@ export default function CacheDirectory() {return;}addLogLine(`Export folder changed to ${newFolder}`);- await ElectronAPIs.setUserCacheDirectory(newFolder);+ await ElectronAPIs.setCustomCacheDirectory(newFolder);setCacheDirectory(newFolder);} catch (e) {logError(e, 'handleCacheDirectoryChange failed');diff --git a/packages/shared/electron/types.ts b/packages/shared/electron/types.tsindex 57b35e07b7..6d8edd8855 100644--- a/packages/shared/electron/types.ts+++ b/packages/shared/electron/types.ts@@ -100,6 +100,6 @@ export interface ElectronAPIsType {computeImageEmbedding: (imageData: Uint8Array) => Promise<Float32Array>;computeTextEmbedding: (text: string) => Promise<Float32Array>;getPlatform: () => Promise<'mac' | 'windows' | 'linux'>;- setUserCacheDirectory: (directory: string) => Promise<void>;- getUserCacheDirectory: () => Promise<string>;+ setCustomCacheDirectory: (directory: string) => Promise<void>;+ getCacheDirectory: () => Promise<string>;}