Skip to content

Commit

Permalink
デスクトップ以外では_initWindow内で処理しないように
Browse files Browse the repository at this point in the history
  • Loading branch information
4ster1sk committed Nov 9, 2024
1 parent 8bcbcd0 commit baaf1a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class Miria extends HookConsumerWidget with WidgetsBindingObserver {
}

Future<void> _initWindow(WidgetRef ref) async {
if (!isDesktop) return;
await windowManager.setPreventClose(true);
final config = ref.read(desktopSettingsRepositoryProvider).settings;

Expand Down

0 comments on commit baaf1a7

Please sign in to comment.