Skip to content

Commit 551a614

Browse files
committed
add condition to update info hero setting
1 parent 6b15a0b commit 551a614

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

TravBotSharp/Forms/Hero/UpdateSettings.Designer.cs

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TravBotSharp/Forms/Hero/UpdateSettings.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,15 @@ private void button2_Click(object sender, EventArgs e)
2929
{
3030
Close();
3131
}
32+
33+
private void minInterval_ValueChanged(object sender, EventArgs e)
34+
{
35+
if (minInterval.Value > maxInterval.Value) minInterval.Value = maxInterval.Value;
36+
}
37+
38+
private void maxInterval_ValueChanged(object sender, EventArgs e)
39+
{
40+
if (minInterval.Value > maxInterval.Value) maxInterval.Value = minInterval.Value;
41+
}
3242
}
3343
}

0 commit comments

Comments
 (0)