Browse Source

Update UserViewModel.cs

Krzysztof Krysiński 6 ngày trước cách đây
mục cha
commit
37cd4b3357
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      src/PixiEditor/ViewModels/SubViewModels/UserViewModel.cs

+ 4 - 0
src/PixiEditor/ViewModels/SubViewModels/UserViewModel.cs

@@ -246,6 +246,10 @@ internal class UserViewModel : SubViewModel<ViewModelMain>
         DispatcherTimer.RunOnce(
             () =>
             {
+                if (TimeToEndTimeout.HasValue && TimeToEndTimeout.Value > DateTime.Now)
+                {
+                    return;
+                }
                 TimeToEndTimeout = null;
                 LastError = null;
                 NotifyProperties();