Qt: Fix generic icon on Wayland

This commit is contained in:
Daniel Simon 2023-12-19 22:17:30 +01:00 committed by Vicki Pfau
parent bfc830e08d
commit 333483a69e
1 changed files with 4 additions and 0 deletions

View File

@ -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);