Skip to content

Commit

Permalink
fix(main: save): don't raise save question when forking factory preset
Browse files Browse the repository at this point in the history
  • Loading branch information
actionless committed Jan 21, 2019
1 parent 378293b commit 549c38a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oomox_gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,13 @@ def save_theme(self, name=None):
self.clone_theme()
return
new_path = save_colorscheme(name, self.colorscheme)
self._unset_save_needed()

old_path = self.colorscheme_path
self.colorscheme_name = name
self.colorscheme_path = new_path
if old_path != new_path:
self.reload_presets()
self._unset_save_needed()

def remove_theme(self, name=None):
if not name:
Expand Down

0 comments on commit 549c38a

Please sign in to comment.