[chronojump] Fixed an encoderRhythm dialog radiobutton
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed an encoderRhythm dialog radiobutton
- Date: Tue, 30 Jan 2018 10:53:42 +0000 (UTC)
commit 09dc2d3cd34d225975fd1655abb95bb05257a0a8
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Jan 30 11:53:11 2018 +0100
Fixed an encoderRhythm dialog radiobutton
src/gui/repetitiveConditions.cs | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/repetitiveConditions.cs b/src/gui/repetitiveConditions.cs
index 309c892..a5c4917 100644
--- a/src/gui/repetitiveConditions.cs
+++ b/src/gui/repetitiveConditions.cs
@@ -156,6 +156,7 @@ public class RepetitiveConditionsWindow
//encoder rhythm
[Widget] Gtk.CheckButton check_rhythm_active;
[Widget] Gtk.RadioButton radio_rhythm_together;
+ [Widget] Gtk.RadioButton radio_rhythm_separated;
[Widget] Gtk.Notebook notebook_duration_repetition;
[Widget] Gtk.VBox vbox_rhythm_cluster;
[Widget] Gtk.Frame frame_rhythm;
@@ -611,7 +612,12 @@ public class RepetitiveConditionsWindow
private void encoder_rhythm_set_values(EncoderRhythm encoderRhythm)
{
check_rhythm_active.Active = encoderRhythm.Active;
- radio_rhythm_together.Active = encoderRhythm.RepsOrPhases;
+
+ if(encoderRhythm.RepsOrPhases)
+ radio_rhythm_together.Active = true;
+ else
+ radio_rhythm_separated.Active = true;
+
spin_rhythm_rep.Value = encoderRhythm.RepSeconds;
spin_rhythm_ecc.Value = encoderRhythm.EccSeconds;
spin_rhythm_con.Value = encoderRhythm.ConSeconds;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]