Skip to content

Commit

Permalink
fix crash in single_instance
Browse files Browse the repository at this point in the history
  • Loading branch information
Notsfsssf committed Aug 20, 2023
1 parent ec38a88 commit 607871c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ main(List<String> args) async {
databaseFactory = databaseFactoryFfi;
}
WidgetsFlutterBinding.ensureInitialized();
SingleInstancePlugin.initialize();
if (Platform.isWindows) {
SingleInstancePlugin.initialize();
}

await initFluent(args);

Expand Down

0 comments on commit 607871c

Please sign in to comment.