nttest 6 tahun lalu
induk
melakukan
f5c1e64b64
1 mengubah file dengan 6 tambahan dan 1 penghapusan
  1. 6 1
      src/AppModels/Vms/StartStopMineButtonViewModel.cs

+ 6 - 1
src/AppModels/Vms/StartStopMineButtonViewModel.cs

@@ -36,7 +36,12 @@ namespace NTMiner.Vms {
                 Bus.IDelegateHandler handler = null;
                 Bus.IDelegateHandler handler = null;
                 handler = AppContext.On<Per1SecondEvent>("挖矿倒计时", LogEnum.None,
                 handler = AppContext.On<Per1SecondEvent>("挖矿倒计时", LogEnum.None,
                 action: message => {
                 action: message => {
-                    BtnStopText = $"倒计时({--n})";
+                    if (NTMinerRoot.IsAutoStartCanceled) {
+                        BtnStopText = $"尚未开始";
+                    }
+                    else {
+                        BtnStopText = $"倒计时({--n})";
+                    }
                     if (n <= 0) {
                     if (n <= 0) {
                         VirtualRoot.UnPath(handler);
                         VirtualRoot.UnPath(handler);
                         if (!NTMinerRoot.IsAutoStartCanceled) {
                         if (!NTMinerRoot.IsAutoStartCanceled) {