Sfoglia il codice sorgente

LibCore: Open gif files with QuickShow

Hüseyin ASLITÜRK 5 anni fa
parent
commit
e7b9e03285
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      Libraries/LibCore/DesktopServices.cpp

+ 3 - 0
Libraries/LibCore/DesktopServices.cpp

@@ -79,6 +79,9 @@ bool open_file_url(const URL& url)
     if (url.path().to_lowercase().ends_with(".png"))
         return spawn("/bin/QuickShow", url.path());
 
+    if (url.path().to_lowercase().ends_with(".gif"))
+        return spawn("/bin/QuickShow", url.path());
+
     if (url.path().to_lowercase().ends_with(".html"))
         return spawn("/bin/Browser", url.path());