- localization fixes

- auto hide all hidden menusections
This commit is contained in:
TrueZhuanjia
2025-06-22 11:11:52 +08:00
parent e1920ddb01
commit 1702f37d3e
2 changed files with 31 additions and 1 deletions
+7
View File
@@ -321,6 +321,13 @@
- (void)updateViewForFoldState {
[self setupConstraints];
NSInteger visibleCount = 0;
for (UIView *subview in _rootStackView.arrangedSubviews) {
if (!subview.isHidden) {
visibleCount++;
}
}
self.hidden = visibleCount == 0;
if (_expanded) {
_rootStackView.hidden = NO;
_separatorLine.hidden = NO;