ui: only prepend one icon path to theme search paths

This commit is contained in:
Peter F. Patel-Schneider 2021-04-04 14:31:19 -04:00
parent 68049efc41
commit 0dbb93e6a5
1 changed files with 2 additions and 2 deletions

View File

@ -88,8 +88,8 @@ def _init_icon_paths():
_default_theme = Gtk.IconTheme.get_default()
for p in _look_for_application_icons():
if p not in _default_theme.get_search_path():
_default_theme.prepend_search_path(p)
_default_theme.prepend_search_path(p)
break # only prepend one path - that's sufficient
if _log.isEnabledFor(_DEBUG):
_log.debug('icon theme paths: %s', _default_theme.get_search_path())