mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
fix: 切换肉鸽主题时, 烧水奖励选择丢失
This commit is contained in:
@@ -636,8 +636,7 @@ public class RoguelikeSettingsUserControlModel : TaskViewModel
|
||||
|
||||
RoguelikeStartAwards = list;
|
||||
OnPropertyChanged(nameof(RoguelikeStartAwards));
|
||||
_roguelikeStartWithSelectList = RoguelikeStartAwards.Where(i => config.Contains(i.Value)).ToArray();
|
||||
OnPropertyChanged(nameof(RoguelikeStartWithSelectList));
|
||||
RoguelikeStartWithSelectList = RoguelikeStartAwards.Where(i => config.Contains(i.Value)).ToArray();
|
||||
}
|
||||
|
||||
private object[] _roguelikeStartWithSelectList = [];
|
||||
@@ -648,7 +647,6 @@ public class RoguelikeSettingsUserControlModel : TaskViewModel
|
||||
set
|
||||
{
|
||||
SetAndNotify(ref _roguelikeStartWithSelectList, value);
|
||||
Instances.SettingsViewModel.UpdateWindowTitle();
|
||||
var config = string.Join(' ', _roguelikeStartWithSelectList.Cast<GenericCombinedData<string>>().Select(i => i.Value).ToList());
|
||||
ConfigurationHelper.SetGlobalValue(ConfigurationKeys.RoguelikeStartWithSelectList, config);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user