From 455823d2b41d53e5bfaf7ff09233d5e58860b28d Mon Sep 17 00:00:00 2001
From: uye <99072975+ABA2396@users.noreply.github.com>
Date: Tue, 14 Nov 2023 01:14:28 +0800
Subject: [PATCH] =?UTF-8?q?style:=20=E8=B0=83=E6=95=B4=E5=8F=98=E9=87=8F?=
=?UTF-8?q?=E4=BD=8D=E7=BD=AE=EF=BC=8C=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ViewModels/UI/SettingsViewModel.cs | 60 +++++++++----------
1 file changed, 30 insertions(+), 30 deletions(-)
diff --git a/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs b/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs
index 1eda866734..bd64bfd750 100644
--- a/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs
+++ b/src/MaaWpfGui/ViewModels/UI/SettingsViewModel.cs
@@ -2289,6 +2289,36 @@ namespace MaaWpfGui.ViewModels.UI
}
}
+ private bool _enablePenguin = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.EnablePenguin, bool.TrueString));
+
+ ///
+ /// Gets or sets a value indicating whether to enable penguin upload.
+ ///
+ public bool EnablePenguin
+ {
+ get => _enablePenguin;
+ set
+ {
+ SetAndNotify(ref _enablePenguin, value);
+ ConfigurationHelper.SetValue(ConfigurationKeys.EnablePenguin, value.ToString());
+ }
+ }
+
+ private bool _enableYituliu = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.EnableYituliu, bool.TrueString));
+
+ ///
+ /// Gets or sets a value indicating whether to enable yituliu upload.
+ ///
+ public bool EnableYituliu
+ {
+ get => _enableYituliu;
+ set
+ {
+ SetAndNotify(ref _enableYituliu, value);
+ ConfigurationHelper.SetValue(ConfigurationKeys.EnableYituliu, value.ToString());
+ }
+ }
+
private bool _isDrGrandet = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.IsDrGrandet, bool.FalseString));
///
@@ -3391,36 +3421,6 @@ namespace MaaWpfGui.ViewModels.UI
}
}
- private bool _enablePenguin = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.EnablePenguin, bool.TrueString));
-
- ///
- /// Gets or sets a value indicating whether to hide unavailable stages.
- ///
- public bool EnablePenguin
- {
- get => _enablePenguin;
- set
- {
- SetAndNotify(ref _enablePenguin, value);
- ConfigurationHelper.SetValue(ConfigurationKeys.EnablePenguin, value.ToString());
- }
- }
-
- private bool _enableYituliu = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.EnableYituliu, bool.TrueString));
-
- ///
- /// Gets or sets a value indicating whether to hide unavailable stages.
- ///
- public bool EnableYituliu
- {
- get => _enableYituliu;
- set
- {
- SetAndNotify(ref _enableYituliu, value);
- ConfigurationHelper.SetValue(ConfigurationKeys.EnableYituliu, value.ToString());
- }
- }
-
private bool _customStageCode = Convert.ToBoolean(ConfigurationHelper.GetValue(ConfigurationKeys.CustomStageCode, bool.FalseString));
///