Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions OpenCloud.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -5293,7 +5293,7 @@
APP_BUILD_FLAGS = "$(inherited) DISABLE_APPSTORE_LICENSING";
APP_BUILD_FLAGS_SWIFT = "$(APP_BUILD_FLAGS)";
APP_PRODUCT_NAME = OpenCloud;
APP_SHORT_VERSION = 1.2.0;
APP_SHORT_VERSION = 1.2.1;
APP_VERSION = 4;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
Expand Down Expand Up @@ -5364,7 +5364,7 @@
APP_BUILD_FLAGS = "$(inherited) DISABLE_APPSTORE_LICENSING";
APP_BUILD_FLAGS_SWIFT = "$(APP_BUILD_FLAGS)";
APP_PRODUCT_NAME = OpenCloud;
APP_SHORT_VERSION = 1.2.0;
APP_SHORT_VERSION = 1.2.1;
APP_VERSION = 4;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,16 @@ open class ClientLocationPopupButton: ThemeCSSButton {
updateButton()
}

private var _didRefreshThemeAfterAttach = false

// One-shot post-attach refresh, mirroring ThemeCSSButton._hasRegistered.
open override func didMoveToWindow() {
super.didMoveToWindow()

self.updateButton()
if window != nil, !_didRefreshThemeAfterAttach {
_didRefreshThemeAfterAttach = true
updateButton()
}
}

func updateButton() {
Expand Down
Loading