Get rid of custom icons for each type of audio and video file.

The episode list takes 24% more time to render with this feature. It is
also known to produce incorrect icons for some file types.

Fixes #872.
This commit is contained in:
auouymous 2022-12-08 04:46:06 -07:00
parent e8af8603a0
commit 47aa09199d
1 changed files with 0 additions and 13 deletions

View File

@ -419,19 +419,6 @@ class EpisodeListModel(Gtk.ListStore):
tooltip.append(_('Downloaded file'))
status_icon = self.ICON_GENERIC_FILE
# Try to find a themed icon for this file
# doesn't work on win32 (opus files are showed as text)
filename = episode.local_filename(create=False, check_only=True)
if filename is not None and have_gio and not gpodder.ui.win32:
file = Gio.File.new_for_path(filename)
if file.query_exists():
file_info = file.query_info('*', Gio.FileQueryInfoFlags.NONE, None)
icon = file_info.get_icon()
for icon_name in icon.get_names():
if self.icon_theme.has_icon(icon_name):
status_icon = icon_name
break
if not episode.file_exists():
tooltip.append(_('missing file'))
else: