π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Force restart on setting localMode
Neeraj Gupta18f299c5af31
diff --git a/mobile/apps/photos/lib/ui/settings/developer_settings_page.dart b/mobile/apps/photos/lib/ui/settings/developer_settings_page.dartindex ace5533c21..342f2dcaa6 100644--- a/mobile/apps/photos/lib/ui/settings/developer_settings_page.dart+++ b/mobile/apps/photos/lib/ui/settings/developer_settings_page.dart@@ -54,14 +54,12 @@ class _DeveloperSettingsPageState extends State<DeveloperSettingsPage> {_logger.info("Entered endpoint: $url");if (url == "localMode") {await localSettings.setAppMode(AppMode.offline);- showToast(context, "App mode set to offline");- Navigator.of(context).pop();+ await _showRestartDialog(context, "offline");return;}if (url == "onlineMode") {await localSettings.setAppMode(AppMode.online);- showToast(context, "App mode set to online");- Navigator.of(context).pop();+ await _showRestartDialog(context, "online");return;}try {@@ -96,6 +94,15 @@ class _DeveloperSettingsPageState extends State<DeveloperSettingsPage> {);}+ Future<void> _showRestartDialog(BuildContext context, String mode) async {+ await showInfoDialog(+ context,+ title: "App mode set to $mode",+ body: "Please kill and restart the app for the changes to take effect.",+ isDismissable: false,+ );+ }+Future<void> _ping(String endpoint) async {try {final response =