forked from Public/monero-gui
macOS: add basic menubar support
This commit is contained in:
@@ -40,6 +40,7 @@ public:
|
||||
static bool openFolderAndSelectItem(const QUrl &path);
|
||||
static QPixmap screenshot();
|
||||
static QString bundlePath();
|
||||
static void disableWindowTabbing();
|
||||
};
|
||||
|
||||
#endif //MACOSHELPER_H
|
||||
|
||||
@@ -41,6 +41,14 @@
|
||||
|
||||
#include "ScopeGuard.h"
|
||||
|
||||
void MacOSHelper::disableWindowTabbing()
|
||||
{
|
||||
#ifdef __MAC_10_12
|
||||
if ([NSWindow respondsToSelector:@selector(allowsAutomaticWindowTabbing)])
|
||||
[NSWindow setAllowsAutomaticWindowTabbing: NO];
|
||||
#endif
|
||||
}
|
||||
|
||||
bool MacOSHelper::isCapsLock()
|
||||
{
|
||||
#ifdef __MAC_10_12
|
||||
|
||||
Reference in New Issue
Block a user