forked from github_mirror/framelesshelper
fix macos build
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
9cadad625a
commit
e9a2abf663
|
@ -592,7 +592,7 @@ Q_GLOBAL_STATIC(MacUtilsData, g_macUtilsData);
|
||||||
g_macUtilsData()->hash.insert(windowId, proxy);
|
g_macUtilsData()->hash.insert(windowId, proxy);
|
||||||
}
|
}
|
||||||
static const auto hook = []() -> int {
|
static const auto hook = []() -> int {
|
||||||
FramelessHelper::Core::registerUninitializeHook([](){
|
registerUninitializeHook([](){
|
||||||
const QMutexLocker locker(&g_macUtilsData()->mutex);
|
const QMutexLocker locker(&g_macUtilsData()->mutex);
|
||||||
if (g_macUtilsData()->hash.isEmpty()) {
|
if (g_macUtilsData()->hash.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue