소스 검색

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)