Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Nokse22 committed Jul 30, 2024
1 parent 2be290c commit bb94126
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,7 @@ def update_time_stamp(self):
def change_setting_state(self, state):
self.logger.debug(f"Requested changing settings to {state}")

# Enable saving the settings only if it's not one already saved
if self.settings_action.get_state() == GLib.Variant("s", "custom") or state == GLib.Variant("s", "custom"):
if state.get_string() == "custom":
self.save_settings_action.set_enabled(True)
self.settings_action.set_state(state)
return
Expand Down

0 comments on commit bb94126

Please sign in to comment.