Skip to content

Commit

Permalink
Qt: Fix generic icon on Wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Simon authored and endrift committed Dec 19, 2023
1 parent bfc830e commit 333483a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/platform/qt/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ int main(int argc, char* argv[]) {
QApplication::setWindowIcon(QIcon(":/res/mgba-256.png"));
#endif

#ifdef Q_OS_UNIX
QApplication::setDesktopFileName(QString("io.mgba.mGBA"));
#endif

QTranslator qtTranslator;
qtTranslator.load(locale, "qt", "_", QLibraryInfo::location(QLibraryInfo::TranslationsPath));
application.installTranslator(&qtTranslator);
Expand Down

0 comments on commit 333483a

Please sign in to comment.