[chronojump] Fixed preferences open on commit: capture encoder show only n bars
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed preferences open on commit: capture encoder show only n bars
- Date: Fri, 25 May 2018 16:28:35 +0000 (UTC)
commit 31bcaecb6401ee1f2c909a73eb0860ef4dbea832
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri May 25 16:32:01 2018 +0200
Fixed preferences open on commit: capture encoder show only n bars
src/gui/preferences.cs | 24 ++++++++++++++----------
1 file changed, 14 insertions(+), 10 deletions(-)
---
diff --git a/src/gui/preferences.cs b/src/gui/preferences.cs
index d89d8513..20a2cdba 100644
--- a/src/gui/preferences.cs
+++ b/src/gui/preferences.cs
@@ -258,16 +258,6 @@ public class PreferencesWindow
else
PreferencesWindowBox.check_appearance_person_photo.Active = false;
- if(preferences.encoderCaptureShowOnlyBars)
- PreferencesWindowBox.check_appearance_encoder_only_bars.Active = true;
- else
- PreferencesWindowBox.check_appearance_encoder_only_bars.Active = false;
-
- if(preferences.encoderCaptureShowNRepetitions < 0)
- PreferencesWindowBox.radio_encoder_capture_show_all_bars.Active = true;
- else
- PreferencesWindowBox.radio_encoder_capture_show_only_some_bars.Active = true;
-
//multimedia tab
if(preferences.volumeOn)
PreferencesWindowBox.checkbutton_volume.Active = true;
@@ -430,6 +420,20 @@ public class PreferencesWindow
PreferencesWindowBox.spin_encoder_capture_min_height_gravitatory.Value =
preferences.encoderCaptureMinHeightGravitatory;
PreferencesWindowBox.spin_encoder_capture_min_height_inertial.Value =
preferences.encoderCaptureMinHeightInertial;
+ if(preferences.encoderCaptureShowOnlyBars)
+ PreferencesWindowBox.check_appearance_encoder_only_bars.Active = true;
+ else
+ PreferencesWindowBox.check_appearance_encoder_only_bars.Active = false;
+
+ if(preferences.encoderCaptureShowNRepetitions < 0) {
+ PreferencesWindowBox.radio_encoder_capture_show_all_bars.Active = true;
+ PreferencesWindowBox.spin_encoder_capture_show_only_some_bars.Value = 10;
+ } else {
+ PreferencesWindowBox.radio_encoder_capture_show_only_some_bars.Active = true;
+ PreferencesWindowBox.spin_encoder_capture_show_only_some_bars.Value =
preferences.encoderCaptureShowNRepetitions;
+ }
+
+
if(preferences.encoderAutoSaveCurve == Constants.EncoderAutoSaveCurve.BEST)
PreferencesWindowBox.radio_encoder_auto_save_curve_best.Active = true;
else if(preferences.encoderAutoSaveCurve == Constants.EncoderAutoSaveCurve.FROM4TOPENULTIMATE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]