Skip to content

Commit

Permalink
In EscapeOneshot, only write our settings if they've been changed
Browse files Browse the repository at this point in the history
  • Loading branch information
obra committed Mar 5, 2024
1 parent 26fe241 commit 8235b59
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ EventHandlerResult EscapeOneShotConfig::onFocusEvent(const char *input) {
Key k;
::Focus.read(k);
::EscapeOneShot.setCancelKey(k);
Runtime.storage().put(settings_base_, ::EscapeOneShot.settings_);
Runtime.storage().commit();
}

Runtime.storage().put(settings_base_, ::EscapeOneShot.settings_);
Runtime.storage().commit();
return EventHandlerResult::EVENT_CONSUMED;
}

Expand Down

0 comments on commit 8235b59

Please sign in to comment.