Skip to content

Commit

Permalink
wayland: fix app icon
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Dec 29, 2024
1 parent 059bff5 commit f5941b0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,6 @@ int main(int argc, char *argv[])
QApplication::setOrganizationDomain(AppSupport::getAppDomain());
QApplication::setApplicationVersion(AppSupport::getAppVersion());

#ifdef Q_OS_LINUX
if (AppSupport::isWayland()) {
QGuiApplication::setDesktopFileName(AppSupport::getAppID());
}
#endif

#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
Expand All @@ -131,7 +125,10 @@ int main(int argc, char *argv[])
// init splash
bool showSplash = true;
#ifdef Q_OS_LINUX
showSplash = !AppSupport::isWayland();
if (AppSupport::isWayland()) {
QGuiApplication::setDesktopFileName(AppSupport::getAppID());
showSplash = false;
}
#endif
QSplashScreen splash(QPixmap(":/icons/splash/splash-00001.png"));
if (showSplash) {
Expand Down

0 comments on commit f5941b0

Please sign in to comment.