Skip to content

Commit 2046cb1

Browse files
committed
10.0
1 parent e3f7a1d commit 2046cb1

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

gui/lib/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ Future<void> _initWindow() async {
171171
}else {
172172
await windowManager.setAlignment(Alignment.center);
173173
}
174+
await windowManager.setPreventClose(true);
174175

175176
if(isWin11) {
176177
await Window.setEffect(

gui/lib/src/page/implementation/home_page.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ class _HomePageState extends State<HomePage> with WindowListener, AutomaticKeepA
164164
await _hostingController.discardServer();
165165
}catch(error) {
166166
log("[HOSTING] Cannot discard server: $error");
167+
}finally {
168+
// Force closing because the backend might be running, but we want the process to exit
169+
exit(0);
167170
}
168171
}
169172

gui/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: reboot_launcher
22
description: Graphical User Interface for Project Reboot
3-
version: "10.0.0"
3+
version: "10.0.1"
44

55
publish_to: 'none'
66

0 commit comments

Comments
 (0)