[chronojump] Removed jump KneeAngle from preferences
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Removed jump KneeAngle from preferences
- Date: Fri, 15 Oct 2021 10:57:02 +0000 (UTC)
commit 421e9fce88a3b191bd9579af462fbd0d000b826c
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Oct 15 12:56:46 2021 +0200
Removed jump KneeAngle from preferences
glade/preferences_win.glade | 19 +++----------------
src/gui/preferences.cs | 9 ++++++---
src/sqlite/preferences.cs | 6 ++++--
3 files changed, 13 insertions(+), 21 deletions(-)
---
diff --git a/glade/preferences_win.glade b/glade/preferences_win.glade
index 8ab575b52..a4f9ce354 100644
--- a/glade/preferences_win.glade
+++ b/glade/preferences_win.glade
@@ -866,22 +866,6 @@
<property name="bottom_attach">2</property>
</packing>
</child>
- <child>
- <widget class="GtkCheckButton" id="checkbutton_angle">
- <property name="label" translatable="yes">Knee
angle</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_underline">True</property>
- <property name="draw_indicator">True</property>
- </widget>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- </packing>
- </child>
<child>
<widget class="GtkHBox" id="hbox57">
<property name="visible">True</property>
@@ -986,6 +970,9 @@
<property name="bottom_attach">2</property>
</packing>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
diff --git a/src/gui/preferences.cs b/src/gui/preferences.cs
index 419c7f517..a7dab61a8 100644
--- a/src/gui/preferences.cs
+++ b/src/gui/preferences.cs
@@ -101,7 +101,7 @@ public class PreferencesWindow
[Widget] Gtk.Image image_jumps_power_help;
[Widget] Gtk.Image image_jumps_stiffness_help;
[Widget] Gtk.CheckButton checkbutton_initial_speed;
- [Widget] Gtk.CheckButton checkbutton_angle;
+// [Widget] Gtk.CheckButton checkbutton_angle;
[Widget] Gtk.CheckButton checkbutton_show_tv_tc_index;
[Widget] Gtk.Box hbox_indexes;
[Widget] Gtk.RadioButton radiobutton_show_q_index;
@@ -513,12 +513,13 @@ public class PreferencesWindow
PreferencesWindowBox.checkbutton_initial_speed.Active = true;
else
PreferencesWindowBox.checkbutton_initial_speed.Active = false;
-
+
+ /*
if(preferences.showAngle)
PreferencesWindowBox.checkbutton_angle.Active = true;
else
PreferencesWindowBox.checkbutton_angle.Active = false;
-
+ */
if(preferences.showQIndex || preferences.showDjIndex) {
PreferencesWindowBox.checkbutton_show_tv_tc_index.Active = true;
@@ -1896,10 +1897,12 @@ public class PreferencesWindow
preferences.showInitialSpeed = PreferencesWindowBox.checkbutton_initial_speed.Active;
}
+ /*
if( preferences.showAngle != PreferencesWindowBox.checkbutton_angle.Active ) {
SqlitePreferences.Update("showAngle",
PreferencesWindowBox.checkbutton_angle.Active.ToString(), true);
preferences.showAngle = PreferencesWindowBox.checkbutton_angle.Active;
}
+ */
if(PreferencesWindowBox.checkbutton_show_tv_tc_index.Active) {
preferences.showQIndex = Preferences.PreferencesChange(
diff --git a/src/sqlite/preferences.cs b/src/sqlite/preferences.cs
index 833636a27..a431682b4 100644
--- a/src/sqlite/preferences.cs
+++ b/src/sqlite/preferences.cs
@@ -575,8 +575,10 @@ class SqlitePreferences : Sqlite
preferences.showStiffness = reader[1].ToString() == "True";
else if(reader[0].ToString() == "showInitialSpeed")
preferences.showInitialSpeed = reader[1].ToString() == "True";
- else if(reader[0].ToString() == "showAngle")
- preferences.showAngle = reader[1].ToString() == "True";
+ else if(reader[0].ToString() == "showAngle") {
+ //preferences.showAngle = reader[1].ToString() == "True";
+ preferences.showAngle = false;
+ }
else if(reader[0].ToString() == "showQIndex")
preferences.showQIndex = reader[1].ToString() == "True";
else if(reader[0].ToString() == "showDjIndex")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]