mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 11:04:25 -04:00
Fix compile error on macos qt6 due to __OBJC_BOOL_IS_BOOL macro
This commit is contained in:
committed by
Luis Ángel San Martín
parent
894ba18ffd
commit
450d3c18b2
@ -1,3 +1,9 @@
|
||||
|
||||
#include <QtGlobal>
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
#undef __OBJC_BOOL_IS_BOOL
|
||||
#endif
|
||||
|
||||
#import <AppKit/AppKit.h>
|
||||
#include "trayhandler.h"
|
||||
|
||||
@ -8,4 +14,4 @@ void OSXShowDockIcon()
|
||||
void OSXHideDockIcon()
|
||||
{
|
||||
[NSApp setActivationPolicy:NSApplicationActivationPolicyAccessory];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user