From 3e9596d5c229b4e1eb26e1e87f1204839e162a91 Mon Sep 17 00:00:00 2001 From: Integral Date: Mon, 1 Jul 2024 21:54:51 +0800 Subject: [PATCH 1/2] Set desktop file name to fix the missing icon when running under Wayland --- UEFITool/uefitool_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UEFITool/uefitool_main.cpp b/UEFITool/uefitool_main.cpp index 3f839711e..b153f1170 100644 --- a/UEFITool/uefitool_main.cpp +++ b/UEFITool/uefitool_main.cpp @@ -26,7 +26,7 @@ class UEFIToolApplication : public QApplication setOrganizationName("CodeRush"); setOrganizationDomain("coderush.me"); setApplicationName("UEFITool"); - + setDesktopFileName("uefitool"); tool = new UEFITool(); } From 285c9746f7a40ebc0d86c00994cb412e8696260a Mon Sep 17 00:00:00 2001 From: Integral Date: Fri, 5 Jul 2024 01:28:15 +0800 Subject: [PATCH 2/2] fix: add qt version limit to setDesktopFileName --- UEFITool/uefitool_main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UEFITool/uefitool_main.cpp b/UEFITool/uefitool_main.cpp index b153f1170..a932a9bd5 100644 --- a/UEFITool/uefitool_main.cpp +++ b/UEFITool/uefitool_main.cpp @@ -26,7 +26,9 @@ class UEFIToolApplication : public QApplication setOrganizationName("CodeRush"); setOrganizationDomain("coderush.me"); setApplicationName("UEFITool"); +#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0) setDesktopFileName("uefitool"); +#endif tool = new UEFITool(); }