* UIProcessBar: 修改最大值至少为1

This commit is contained in:
Sunny 2022-09-05 13:55:11 +08:00
parent 2647d135cb
commit 7bf2f55173

View File

@ -22,6 +22,7 @@
* 2021-08-14: V3.0.6 * 2021-08-14: V3.0.6
* 2021-10-14: V3.0.8 3 * 2021-10-14: V3.0.8 3
* 2022-03-19: V3.1.1 * 2022-03-19: V3.1.1
* 2022-09-05: V3.2.3 1
******************************************************************************/ ******************************************************************************/
using System; using System;
@ -76,7 +77,7 @@ namespace Sunny.UI
get => maximum; get => maximum;
set set
{ {
maximum = value; maximum = Math.Max(1, value);
Invalidate(); Invalidate();
} }
} }