mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Force shortcuts to show in context menus on macOS (#4722)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
parent
ae8b2adcdd
commit
0e83367a2b
|
@ -21,6 +21,7 @@
|
||||||
- Bugfix: Fixed partially broken filters on Qt 6 builds. (#4702)
|
- Bugfix: Fixed partially broken filters on Qt 6 builds. (#4702)
|
||||||
- Bugfix: Fixed some network errors having `0` as their HTTP status. (#4704)
|
- Bugfix: Fixed some network errors having `0` as their HTTP status. (#4704)
|
||||||
- Bugfix: Fixed crash that could occurr when closing the usercard too quickly after blocking or unblocking a user. (#4711)
|
- Bugfix: Fixed crash that could occurr when closing the usercard too quickly after blocking or unblocking a user. (#4711)
|
||||||
|
- Bugfix: Fixed key bindings not showing in context menus on Mac. (#4722)
|
||||||
- Dev: Added command to set Qt's logging filter/rules at runtime (`/c2-set-logging-rules`). (#4637)
|
- Dev: Added command to set Qt's logging filter/rules at runtime (`/c2-set-logging-rules`). (#4637)
|
||||||
- Dev: Added the ability to see & load custom themes from the Themes directory. No stable promises are made of this feature, changes might be made that breaks custom themes without notice. (#4570)
|
- Dev: Added the ability to see & load custom themes from the Themes directory. No stable promises are made of this feature, changes might be made that breaks custom themes without notice. (#4570)
|
||||||
- Dev: Added test cases for emote and tab completion. (#4644)
|
- Dev: Added test cases for emote and tab completion. (#4644)
|
||||||
|
|
|
@ -86,6 +86,13 @@ namespace {
|
||||||
QApplication::setWindowIcon(QIcon(":/icon.ico"));
|
QApplication::setWindowIcon(QIcon(":/icon.ico"));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
// On the Mac/Cocoa platform this attribute is enabled by default
|
||||||
|
// We override it to ensure shortcuts show in context menus on that platform
|
||||||
|
QApplication::setAttribute(Qt::AA_DontShowShortcutsInContextMenus,
|
||||||
|
false);
|
||||||
|
#endif
|
||||||
|
|
||||||
installCustomPalette();
|
installCustomPalette();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue