5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-04 00:10:47 +08:00

Fix compilation issue on Darwin < 12.3

This commit is contained in:
Lea Anthony 2024-06-08 13:52:50 +10:00
parent bf9e17a6c8
commit 95c751d4ac

View File

@ -68,13 +68,13 @@ void* windowNew(unsigned int id, int width, int height, bool fraudulentWebsiteWa
}
}
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 120300
if (@available(macOS 12.3, *)) {
if (preferences.FullscreenEnabled != NULL) {
config.preferences.elementFullscreenEnabled = *preferences.FullscreenEnabled;
}
}
#endif
config.suppressesIncrementalRendering = true;
config.applicationNameForUserAgent = @"wails.io";