File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Easydict/objc/ViewController/View/Titlebar Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,23 @@ - (void)setup {
59
59
[defaultCenter addObserver: self selector: @selector (updateConstraints ) name: NSNotification .languagePreferenceChanged object: nil ];
60
60
}
61
61
62
+ // - (void)update
63
+
62
64
- (void )updateConstraints {
65
+ /* *
66
+ Fix appcenter issue, seems cannot remove self.subviews 🤔
67
+
68
+ -[EZTitlebar updateConstraints]
69
+ EZTitlebar.m, line 64
70
+ SIGABRT: *** Collection <__NSArrayM: 0x6000036e45d0> was mutated while being enumerated.
71
+ */
72
+
63
73
// Remove and dealloc all views to refresh UI.
64
- for ( NSView *subview in self. subviews ) {
65
- [subview removeFromSuperview ];
66
- }
74
+
75
+ [_pinButton removeFromSuperview ];
76
+ [_stackView removeFromSuperview ];
67
77
_stackView = nil ;
78
+ _quickActionButton = nil ;
68
79
69
80
[self addSubview: self .pinButton];
70
81
[self updatePinButton ];
You can’t perform that action at this time.
0 commit comments