π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
only run watch folder on electron
Abhinava51d4cc8fa04
diff --git a/apps/photos/src/components/WatchFolder/index.tsx b/apps/photos/src/components/WatchFolder/index.tsxindex 2d87c80b4d..0ce5c4be20 100644--- a/apps/photos/src/components/WatchFolder/index.tsx+++ b/apps/photos/src/components/WatchFolder/index.tsx@@ -12,6 +12,7 @@ import { UPLOAD_STRATEGY } from 'constants/upload';import { getImportSuggestion } from 'utils/upload';import ElectronAPIs from '@ente/shared/electron';import { PICKED_UPLOAD_TYPE } from 'constants/upload';+import isElectron from 'is-electron';interface Iprops {open: boolean;@@ -25,6 +26,9 @@ export default function WatchFolder({ open, onClose }: Iprops) {const appContext = useContext(AppContext);useEffect(() => {+ if (!isElectron()) {+ return;+ }setMappings(watchFolderService.getWatchMappings());}, []);