From c623a9555276cf5cdb2137b9665ed3ab83a7642b Mon Sep 17 00:00:00 2001 From: Micin Date: Thu, 3 Nov 2022 17:37:52 +0700 Subject: [PATCH] lit --- src/DownloadRow.vala | 5 ++++- src/GabutWindow.vala | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/DownloadRow.vala b/src/DownloadRow.vala index 6118cce..908c568 100644 --- a/src/DownloadRow.vala +++ b/src/DownloadRow.vala @@ -63,7 +63,10 @@ namespace Gabut { _fileordir = value; if (value != null && value != "") { imagefile.gicon = GLib.ContentType.get_icon (value); - rowbus.property_set (MenuItem.ICON_NAME.to_string (), GLib.ContentType.get_generic_icon_name (value)); + var genricico = GLib.ContentType.get_generic_icon_name (value); + if (genricico != null) { + rowbus.property_set (MenuItem.ICON_NAME.to_string (), genricico); + } } } } diff --git a/src/GabutWindow.vala b/src/GabutWindow.vala index 7a29fd0..0ae64b5 100644 --- a/src/GabutWindow.vala +++ b/src/GabutWindow.vala @@ -619,7 +619,6 @@ namespace Gabut { } return true; }); - aria_purge_all (); } public void remove_all () {