mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
do not show icons in menu on macOS
There is something wrong in the icon resource path on macOS. The icons in menu could not be displayed correctly.
This commit is contained in:
parent
c15908a724
commit
41fef0ed88
@ -106,6 +106,12 @@ int main(int argc, char *argv[])
|
||||
QApplication app(argc, argv);
|
||||
vconfig.initialize();
|
||||
|
||||
#if defined(Q_OS_MACOS)
|
||||
// Do not show icons in menu on macOS since there is something wrong with
|
||||
// the icon path on macOS.
|
||||
app.setAttribute(Qt::AA_DontShowIconsInMenus);
|
||||
#endif
|
||||
|
||||
QString locale = VUtils::getLocale();
|
||||
qDebug() << "use locale" << locale;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user