This commit is contained in:
2025-09-17 16:28:55 +08:00
parent be1389df98
commit d39f7922e8
2 changed files with 8 additions and 3 deletions
@@ -159,7 +159,11 @@ export class NavigationManager {
let subs = this.subPanelDic.get(this.currentActivePanel);
if (subs) {
subs.forEach((n) => {
n.getComponent(li_BaseView)?.close();
if (n.name != "") {
n.getComponent(li_BaseView)?.close();
} else {
//n.destroy();
}
});
}
@@ -41,7 +41,9 @@ export class SettingPanel extends li_BaseView {
private curLanguage: Label;
private languageButtons: LanguageButton[] = [];
private currentSelectedLang: LanguageType = null;
protected start(): void {
protected start(): void {}
onLoadCT(): void {
Utils.parseNode(this.node, this._nodeTab);
this.initUI();
@@ -52,7 +54,6 @@ export class SettingPanel extends li_BaseView {
this.languageDrawdown.setScale(new Vec3(1, 0, 1));
}
}
onEnable() {
this.currentSelectedLang = LanguageUtils.CurrentLanguage;
this.updateSelection();