Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add else statement

Tristan95c77961d225
diff --git a/mobile/apps/auth/lib/app/view/app.dart b/mobile/apps/auth/lib/app/view/app.dart
index 09ca12087e..e517a47d9b 100644
--- a/mobile/apps/auth/lib/app/view/app.dart
+++ b/mobile/apps/auth/lib/app/view/app.dart
@@ -214,9 +214,10 @@ class _AppState extends State<App>
if (Platform.isWindows) {
final int hProcess = GetCurrentProcess();
TerminateProcess(hProcess, 0);
+ } else {
+ windowManager.setPreventClose(false);
+ windowManager.destroy();
}
- windowManager.setPreventClose(false);
- windowManager.destroy();
break;
}
}
@@ -232,9 +233,10 @@ class _AppState extends State<App>
if (Platform.isWindows) {
final int hProcess = GetCurrentProcess();
TerminateProcess(hProcess, 0);
+ } else {
+ windowManager.setPreventClose(false);
+ windowManager.destroy();
}
- windowManager.setPreventClose(false);
- windowManager.destroy();
}
}
}