|
|
@ -196,13 +196,10 @@ class _NeonAppState extends State<NeonApp> with WidgetsBindingObserver, tray.Tra |
|
|
|
exit(0); |
|
|
|
exit(0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
final matches = _appRegex.allMatches(shortcutType).toList(); |
|
|
|
final matches = _appRegex.allMatches(shortcutType); |
|
|
|
if (matches.isNotEmpty) { |
|
|
|
|
|
|
|
final activeAccount = _accountsBloc.activeAccount.valueOrNull; |
|
|
|
final activeAccount = _accountsBloc.activeAccount.valueOrNull; |
|
|
|
if (activeAccount == null) { |
|
|
|
if (matches.isNotEmpty && activeAccount != null) { |
|
|
|
return; |
|
|
|
await _openAppFromExternal(activeAccount, matches.first.group(1)!); |
|
|
|
} |
|
|
|
|
|
|
|
await _openAppFromExternal(activeAccount, matches[0].group(1)!); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|