Skip to content

Commit

Permalink
fix: prevent hotkey from suspending Nyrna
Browse files Browse the repository at this point in the history
Resolves #190
  • Loading branch information
Merrit committed Oct 19, 2023
1 parent 740e165 commit b01be76
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/active_window/src/active_window.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ class ActiveWindow {

final window = await _nativePlatform.activeWindow();

final String executable = window.process.executable;
if (executable == 'nyrna' || executable == 'nyrna.exe') {
log.w('Active window is Nyrna, not suspending.');
return false;
}

log.i('Active window: $window');

if (defaultTargetPlatform == TargetPlatform.windows) {
Expand Down

0 comments on commit b01be76

Please sign in to comment.