- 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
+24 -1
View File
@@ -168,7 +168,7 @@
}
}
},
"[ Open On-Screen Widget Tool ]" : {
"[ Open on-screen widget tool ]" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
@@ -191,6 +191,29 @@
}
}
},
"[ Switch among on-screen widget profiles ]" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "[ 切换屏显控件布局 ]"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "[ 切换屏显控件布局 ]"
}
},
"zh-HK" : {
"stringUnit" : {
"state" : "translated",
"value" : "[ 切换屏显控件布局 ]"
}
}
}
},
"%@ is currently running" : {
"extractionState" : "manual",
"localizations" : {
+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;