fix: shortcut not working due to range error

This commit is contained in:
Kingtous
2023-03-25 11:15:09 +08:00
parent 6fb1ea6bf4
commit bdafa86e0a
2 changed files with 5 additions and 6 deletions

View File

@@ -134,10 +134,9 @@ void runMainApp(bool startService) async {
await restoreWindowPosition(WindowType.Main);
// Check the startup argument, if we successfully handle the argument, we keep the main window hidden.
final handledByUniLinks = await initUniLinks();
final handledByCli = checkArguments();
debugPrint(
"handled by uni links: $handledByUniLinks, handled by cli: $handledByCli");
if (handledByUniLinks || handledByCli) {
"handled by uni links: $handledByUniLinks");
if (handledByUniLinks || checkArguments()) {
windowManager.hide();
} else {
windowManager.show();