Procházet zdrojové kódy

Fix to bug on MainWindow timesheet bypass

Kenric Nugteren před 4 měsíci
rodič
revize
a2ba23a996
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. 4 3
      prs.desktop/MainWindow.xaml.cs

+ 4 - 3
prs.desktop/MainWindow.xaml.cs

@@ -1658,7 +1658,10 @@ public partial class MainWindow : IPanelHostControl
         }
         else
         {
-            MessageWindow.ShowMessage("You must clock on before logging in to PRS!", "Not clocked in.");
+            Dispatcher.Invoke(() =>
+            {
+                MessageWindow.ShowMessage("You must clock on before logging in to PRS!", "Not clocked in.");
+            });
             ClientFactory.InvalidateUser();
             App.EmployeeID = Guid.Empty;
             App.EmployeeName = "";
@@ -1861,8 +1864,6 @@ public partial class MainWindow : IPanelHostControl
         {
             if (!isClockedOn)
             {
-                if (message)
-                    MessageBox.Show("You must clock on before opening this screen");
                 return false;
             }