Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: changed the name of auto update rotations
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 12, 2023
1 parent d2c6d6b commit 04a5221
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Configuration/PluginConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver/Localization/Strings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.";

Expand Down
4 changes: 2 additions & 2 deletions RotationSolver/UI/RotationConfigWindow_RotationDev.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver/Updaters/RotationUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 04a5221

Please sign in to comment.