mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix generic icon on Wayland
This commit is contained in:
parent
bfc830e08d
commit
333483a69e
|
@ -104,6 +104,10 @@ int main(int argc, char* argv[]) {
|
||||||
QApplication::setWindowIcon(QIcon(":/res/mgba-256.png"));
|
QApplication::setWindowIcon(QIcon(":/res/mgba-256.png"));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef Q_OS_UNIX
|
||||||
|
QApplication::setDesktopFileName(QString("io.mgba.mGBA"));
|
||||||
|
#endif
|
||||||
|
|
||||||
QTranslator qtTranslator;
|
QTranslator qtTranslator;
|
||||||
qtTranslator.load(locale, "qt", "_", QLibraryInfo::location(QLibraryInfo::TranslationsPath));
|
qtTranslator.load(locale, "qt", "_", QLibraryInfo::location(QLibraryInfo::TranslationsPath));
|
||||||
application.installTranslator(&qtTranslator);
|
application.installTranslator(&qtTranslator);
|
||||||
|
|
Loading…
Reference in New Issue