Skip to content

Commit

Permalink
Add additional settings to watch
Browse files Browse the repository at this point in the history
  • Loading branch information
zytact committed Dec 31, 2024
1 parent 77caf68 commit ef079b3
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions picard/ui/metadatabox.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,21 @@ def __init__(self, parent=None):
self.ignore_updates = IgnoreUpdatesContext(on_exit=self.update)
self.tagger.clipboard().dataChanged.connect(self._update_clipboard)

def _on_setting_changed(self, key, old_value, new_value):
if key in ('rename_files', 'move_files'):
def _on_setting_changed(self, name, old_value, new_value):
settings_to_watch = {
"enabled_plugins",
"move_files",
"move_files_to",
"rename_files",
"standardize_artists",
"va_name",
"windows_compatibility",
"selected_file_naming_script_id",
"file_naming_scripts",
"user_profiles",
"user_profile_settings"
}
if name in settings_to_watch:
self.update(drop_album_caches=False)

def _get_file_lookup(self):
Expand Down

0 comments on commit ef079b3

Please sign in to comment.