mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 18:01:26 +08:00
fix: miss warning
This commit is contained in:
@@ -3295,6 +3295,22 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
get => _allowUseStoneSave;
|
||||
set
|
||||
{
|
||||
if (value)
|
||||
{
|
||||
var result = MessageBoxHelper.Show(
|
||||
LocalizationHelper.GetString("AllowUseStoneSaveWarning"),
|
||||
LocalizationHelper.GetString("Warning"),
|
||||
MessageBoxButton.YesNo,
|
||||
MessageBoxImage.Warning,
|
||||
no: LocalizationHelper.GetString("Confirm"),
|
||||
yes: LocalizationHelper.GetString("Cancel"),
|
||||
iconBrushKey: "DangerBrush");
|
||||
if (result != MessageBoxResult.No)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
SetAndNotify(ref _allowUseStoneSave, value);
|
||||
ConfigurationHelper.SetValue(ConfigurationKeys.AllowUseStoneSave, value.ToString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user