[chronojump] networks rfid wait message shown again!



commit 2dad5c3ea74ba08342b3b6e90fb4192ed62d7638
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Feb 26 16:31:07 2020 +0100

    networks rfid wait message shown again!

 po/POTFILES.in      |  1 +
 src/gui/networks.cs | 10 ++++++----
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index e9ce585c..38fd48ad 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -89,6 +89,7 @@ src/gui/helpPorts.cs
 src/gui/jump.cs
 src/gui/jumpType.cs
 src/gui/multiChronopic.cs
+src/gui/networks.cs
 src/gui/old/chronojumpServerOld.cs
 src/gui/old/queryServer.cs
 src/gui/overview.cs
diff --git a/src/gui/networks.cs b/src/gui/networks.cs
index 584ea3f1..bd193553 100644
--- a/src/gui/networks.cs
+++ b/src/gui/networks.cs
@@ -29,6 +29,7 @@ using System.Collections; //ArrayList
 using System.Collections.Generic; //List
 using System.Diagnostics; //Process
 using System.Threading;
+using Mono.Unix;
        
 public partial class ChronoJumpWindow 
 {
@@ -550,6 +551,7 @@ public partial class ChronoJumpWindow
                TimeSpan span = DateTime.Now - startedRFIDWait;
                if(span.TotalSeconds < 2) {
                        label_rfid_wait.Visible = true;
+                       label_rfid_encoder_wait.Text = Catalog.GetString("Please, wait!");
                        label_rfid_encoder_wait.Visible = true;
                } else {
                        label_rfid_wait.Visible = false;
@@ -589,7 +591,8 @@ public partial class ChronoJumpWindow
                                LogB.Information("rest seconds: " + 
rfidWaitingAdminGuiObjects.RestSeconds().ToString());
                                if(rfidWaitingAdminGuiObjects.RestSeconds() != -1) {
                                        label_rfid_encoder_wait.Text =
-                                               string.Format("Identify with admin ID wristband before {0} 
s.", rfidWaitingAdminGuiObjects.RestSeconds());
+                                               string.Format(Catalog.GetString("Identify with admin ID 
wristband before {0} s."),
+                                                               rfidWaitingAdminGuiObjects.RestSeconds());
                                        label_rfid_encoder_wait.Visible = true;
                                } else {
                                        rfidWaitingAdminGuiObjects = new RFIDWaitingAdminGuiObjects();
@@ -598,8 +601,7 @@ public partial class ChronoJumpWindow
                                }
                                Thread.Sleep (100);
                                return true;
-                       } else
-                               label_rfid_encoder_wait.Text = "";
+                       }
                }
 
 
@@ -1384,7 +1386,7 @@ public class CompujumpAutologout
        }
 }
 
-//this class manages the wating of admin wristband in tasks like sending an email with the analyze image
+//this class manages the waiting of admin wristband in tasks like sending an email with the analyze image
 public class RFIDWaitingAdminGuiObjects
 {
        public bool Waiting;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]