mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 18:01:26 +08:00
chore: 修改LanguageList初始化过程
This commit is contained in:
@@ -297,7 +297,7 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
new GenericCombinedData<UpdateVersionType> { Display = LocalizationHelper.GetString("UpdateCheckStable"), Value = UpdateVersionType.Stable },
|
||||
};
|
||||
|
||||
LanguageList = new List<CombinedData>();
|
||||
var languageList = new List<CombinedData>();
|
||||
foreach (var pair in LocalizationHelper.SupportedLanguages)
|
||||
{
|
||||
if (pair.Key == PallasLangKey && !Cheers)
|
||||
@@ -305,8 +305,10 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
continue;
|
||||
}
|
||||
|
||||
LanguageList.Add(new CombinedData { Display = pair.Value, Value = pair.Key });
|
||||
languageList.Add(new CombinedData { Display = pair.Value, Value = pair.Key });
|
||||
}
|
||||
|
||||
LanguageList = languageList;
|
||||
}
|
||||
|
||||
private bool _idle = true;
|
||||
|
||||
Reference in New Issue
Block a user