mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 02:10:21 +08:00
fix: 手动输入关卡名 与 使用剩余理智 选项无法保存
This commit is contained in:
@@ -206,7 +206,11 @@ public class FightSettingsUserControlModel : PropertyChangedBase
|
||||
public bool UseRemainingSanityStage
|
||||
{
|
||||
get => _useRemainingSanityStage;
|
||||
set => SetAndNotify(ref _useRemainingSanityStage, value);
|
||||
set
|
||||
{
|
||||
SetAndNotify(ref _useRemainingSanityStage, value);
|
||||
ConfigurationHelper.SetValue(ConfigurationKeys.UseRemainingSanityStage, value.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
private bool _customStageCode = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.CustomStageCode, bool.FalseString));
|
||||
@@ -217,7 +221,11 @@ public class FightSettingsUserControlModel : PropertyChangedBase
|
||||
public bool CustomStageCode
|
||||
{
|
||||
get => _customStageCode;
|
||||
set => SetAndNotify(ref _customStageCode, value);
|
||||
set
|
||||
{
|
||||
SetAndNotify(ref _customStageCode, value);
|
||||
ConfigurationHelper.SetValue(ConfigurationKeys.CustomStageCode, value.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
private string _remainingSanityStage = ConfigurationHelper.GetValue(ConfigurationKeys.RemainingSanityStage, string.Empty) ?? string.Empty;
|
||||
|
||||
Reference in New Issue
Block a user