Merge pull request #3973 from lemondrops/mac_icon_fix

Don't set the application icon in qt_main.c on Mac
This commit is contained in:
Miran Grča 2023-12-31 01:42:20 +01:00 committed by GitHub
commit 33b6a32300
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -195,18 +195,19 @@ main(int argc, char *argv[])
SetCurrentProcessExplicitAppUserModelID(L"86Box.86Box");
#endif
#ifdef RELEASE_BUILD
#ifndef Q_OS_APPLE
# ifdef RELEASE_BUILD
app.setWindowIcon(QIcon(":/settings/win/icons/86Box-green.ico"));
#elif defined ALPHA_BUILD
# elif defined ALPHA_BUILD
app.setWindowIcon(QIcon(":/settings/win/icons/86Box-red.ico"));
#elif defined BETA_BUILD
# elif defined BETA_BUILD
app.setWindowIcon(QIcon(":/settings/win/icons/86Box-yellow.ico"));
#else
# else
app.setWindowIcon(QIcon(":/settings/win/icons/86Box-gray.ico"));
#endif
#if (!defined(Q_OS_WINDOWS) && !defined(__APPLE__))
# ifdef Q_OS_UNIX
app.setDesktopFileName("net.86box.86Box");
# endif
#endif
if (!pc_init_modules()) {