Skip to content

Commit

Permalink
fix: Do not show error message if user turns off KMonad
Browse files Browse the repository at this point in the history
  • Loading branch information
jurf committed Jul 12, 2023
1 parent 324c374 commit 1c3ccde
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,10 @@ class Extension {
)[1];
execCommunicate(command, null, this._cancellable)
.catch(e => {
logError(e);
Main.notifyError(_('KMonad failed to launch'), e.message.trim());
if (!this._cancellable.is_cancelled()) {
logError(e);
Main.notifyError(_('KMonad failed'), e.message.trim());
}
})
.then(() => {
this._settings.set_boolean('kmonad-running', false);
Expand Down

0 comments on commit 1c3ccde

Please sign in to comment.