From 04a5221a50d3dc45dd3d15feaf2b7b9a43bbed36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4?= <1123993881@qq.com> Date: Wed, 12 Apr 2023 09:54:48 +0800 Subject: [PATCH] fix: changed the name of auto update rotations --- RotationSolver.Basic/Configuration/PluginConfiguration.cs | 2 +- RotationSolver/Localization/Strings.cs | 2 +- RotationSolver/UI/RotationConfigWindow_RotationDev.cs | 4 ++-- RotationSolver/Updaters/RotationUpdater.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/RotationSolver.Basic/Configuration/PluginConfiguration.cs b/RotationSolver.Basic/Configuration/PluginConfiguration.cs index a28348aa4..d6a37bfca 100644 --- a/RotationSolver.Basic/Configuration/PluginConfiguration.cs +++ b/RotationSolver.Basic/Configuration/PluginConfiguration.cs @@ -161,7 +161,7 @@ public class PluginConfiguration : IPluginConfiguration public MacroInfo DutyStart { get; set; } = new MacroInfo(); public MacroInfo DutyEnd { get; set; } = new MacroInfo(); - public bool AutoDownloadRotations = true; + public bool AutoUpdateRotations = true; public bool ToggleManual = false; public bool OnlyShowWithHostileOrInDuty = true; diff --git a/RotationSolver/Localization/Strings.cs b/RotationSolver/Localization/Strings.cs index 0ca07e3e3..dc142457b 100644 --- a/RotationSolver/Localization/Strings.cs +++ b/RotationSolver/Localization/Strings.cs @@ -130,7 +130,7 @@ internal partial class Strings public string ConfigWindow_Param_UseStopCasting { get; set; } = "Use stopping casting when target is dead."; public string ConfigWindow_Param_ShowActionFlag { get; set; } = "Show action flag."; public string ConfigWindow_Param_InDebug { get; set; } = "Debug Mode"; - public string ConfigWindow_Param_AutoDownloadRotations { get; set; } = "Auto Download Rotaions."; + public string ConfigWindow_Param_AutoUpdateRotations { get; set; } = "Auto Update Rotaions."; public string ConfigWindow_Param_ShowHealthRatio { get; set; } = "Show the health ratio for the check of Boss, Dying, Dot."; diff --git a/RotationSolver/UI/RotationConfigWindow_RotationDev.cs b/RotationSolver/UI/RotationConfigWindow_RotationDev.cs index 28dc504bf..b37d44235 100644 --- a/RotationSolver/UI/RotationConfigWindow_RotationDev.cs +++ b/RotationSolver/UI/RotationConfigWindow_RotationDev.cs @@ -27,8 +27,8 @@ private void DrawRotationDevTab() ImGui.SameLine(); - DrawCheckBox(LocalizationManager.RightLang.ConfigWindow_Param_AutoDownloadRotations, - ref Service.Config.AutoDownloadRotations, Service.Default.AutoDownloadRotations); + DrawCheckBox(LocalizationManager.RightLang.ConfigWindow_Param_AutoUpdateRotations, + ref Service.Config.AutoUpdateRotations, Service.Default.AutoUpdateRotations); if (ImGui.BeginChild("Third-party Libs", new Vector2(0f, -1f), true)) { diff --git a/RotationSolver/Updaters/RotationUpdater.cs b/RotationSolver/Updaters/RotationUpdater.cs index 1361618dd..2b01aac1e 100644 --- a/RotationSolver/Updaters/RotationUpdater.cs +++ b/RotationSolver/Updaters/RotationUpdater.cs @@ -54,7 +54,7 @@ public static async void GetAllCustomRotations() if (string.IsNullOrEmpty(fileName)) continue; if (Path.GetExtension(fileName) != ".dll") continue; var filePath = Path.Combine(relayFolder, fileName); - if(!Service.Config.AutoDownloadRotations && File.Exists(filePath)) continue; + if(!Service.Config.AutoUpdateRotations && File.Exists(filePath)) continue; //Download using (HttpResponseMessage response = await client.GetAsync(url))