瀏覽代碼

Fallback to hardcoded icon on Linux if icon not found in theme

Vignesh B 3 年之前
父節點
當前提交
251a395d86
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main.cpp

+ 1 - 1
src/main.cpp

@@ -162,7 +162,7 @@ int main(int argc, char *argv[])
 
 #if defined(Q_OS_LINUX)
   	// Set window icon on Linux using system icon theme
-  	app.setWindowIcon(QIcon::fromTheme("com.github.iwalton3.jellyfin-media-player"));
+  	app.setWindowIcon(QIcon::fromTheme("com.github.iwalton3.jellyfin-media-player", QIcon(":/images/icon.png")));
 #endif
 
 #if defined(Q_OS_MAC) && defined(NDEBUG)