This commit is contained in:
Alessandro Autiero
2024-12-09 12:59:14 +01:00
parent e3f7a1d2cc
commit 2046cb14f6
3 changed files with 5 additions and 1 deletions

View File

@@ -171,6 +171,7 @@ Future<void> _initWindow() async {
}else { }else {
await windowManager.setAlignment(Alignment.center); await windowManager.setAlignment(Alignment.center);
} }
await windowManager.setPreventClose(true);
if(isWin11) { if(isWin11) {
await Window.setEffect( await Window.setEffect(

View File

@@ -164,6 +164,9 @@ class _HomePageState extends State<HomePage> with WindowListener, AutomaticKeepA
await _hostingController.discardServer(); await _hostingController.discardServer();
}catch(error) { }catch(error) {
log("[HOSTING] Cannot discard server: $error"); log("[HOSTING] Cannot discard server: $error");
}finally {
// Force closing because the backend might be running, but we want the process to exit
exit(0);
} }
} }

View File

@@ -1,6 +1,6 @@
name: reboot_launcher name: reboot_launcher
description: Graphical User Interface for Project Reboot description: Graphical User Interface for Project Reboot
version: "10.0.0" version: "10.0.1"
publish_to: 'none' publish_to: 'none'