[chronojump/michrolab] Threshold applied/failed shown on tooltip instead of label
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/michrolab] Threshold applied/failed shown on tooltip instead of label
- Date: Thu, 14 Jul 2022 16:37:55 +0000 (UTC)
commit e5aa191583f5aa99b2e51930b651756fcfd6d80b
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]