fix: keep macOS main window titlebar opaque

This commit is contained in:
dijunkun
2026-07-28 14:42:06 +08:00
parent cee249a25b
commit 708c39bb99
3 changed files with 17 additions and 5 deletions
+1 -1
View File
@@ -2007,7 +2007,7 @@ void GuiApplication::SyncMainWindow() {
}
#if defined(__APPLE__)
if (ui_->main_native_titlebar_attempts > 0) {
if (HideDisabledMainWindowZoomButton()) {
if (ConfigureMainWindowTitlebar()) {
ui_->main_native_titlebar_attempts = 0;
} else {
--ui_->main_native_titlebar_attempts;