diff --git a/lib/main.dart b/lib/main.dart index 5e0049eeb..cdce35502 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -56,6 +56,7 @@ class Miria extends HookConsumerWidget with WidgetsBindingObserver { } Future _initWindow(WidgetRef ref) async { + if (!isDesktop) return; await windowManager.setPreventClose(true); final config = ref.read(desktopSettingsRepositoryProvider).settings;