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

Commit

Permalink
fix: make reset more safe.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jul 19, 2023
1 parent 459d35b commit bd39943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RotationSolver/UI/ImGuiHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ private static bool UndoValue(string name)
!isTime ? LocalizationManager.RightLang.ConfigWindow_Param_ResetToDefaultWait :
isLast ? LocalizationManager.RightLang.ConfigWindow_Param_ResetToDefaultSure
: LocalizationManager.RightLang.ConfigWindow_Param_ResetToDefault)
&& isTime)
)
{
if (isLast)
if (isLast && isTime)
{
result = true;
_lastTime = DateTime.MinValue;
Expand Down

0 comments on commit bd39943

Please sign in to comment.