[chronojump] Threshold applied/failed shown on tooltip instead of label



commit ef87d8e91cc27a848e41cfcf58eb83e3b11e7b46
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Jun 14 17:29:37 2022 +0200

    Threshold applied/failed shown on tooltip instead of label

 src/gui/chronopic.cs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/chronopic.cs b/src/gui/chronopic.cs
index 1e9020efd..208814a88 100644
--- a/src/gui/chronopic.cs
+++ b/src/gui/chronopic.cs
@@ -152,7 +152,7 @@ public partial class ChronoJumpWindow
                        label_threshold.Text = //Catalog.GetString("Threshold") + " " +
                                threshold.GetLabel() + " ms";
                        if(threshold.GetT == 50)
-                               label_threshold.Text += " (" + Catalog.GetString("Applied") + ")";
+                               button_threshold.TooltipText = label_threshold.Text + " (" + 
Catalog.GetString("Applied") + ")";
 
                        UtilGtk.PrintLabelWithTooltip(event_execute_label_message,
                                        Catalog.GetString("Connected to Chronopic"));
@@ -173,9 +173,9 @@ public partial class ChronoJumpWindow
                        bool ok = cp2016.ChangeMultitestFirmwarePre(threshold.GetT, cpCount);
                        if(ok) {
                                threshold.ChronopicFirmwareUpdated(cpCount);
-                               label_threshold.Text += " (" + Catalog.GetString("Applied") + ")";
+                               button_threshold.TooltipText = label_threshold.Text + " (" + 
Catalog.GetString("Applied") + ")";
                        } else
-                               label_threshold.Text += " (" + Catalog.GetString("Failed") + ")";
+                               button_threshold.TooltipText = label_threshold.Text + " (" + 
Catalog.GetString("Failed") + ")";
                }
 
                connectingSequence = connectingSequenceEnum.END;


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