[chronojump] Two more restrictions for Compujump
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Two more restrictions for Compujump
- Date: Wed, 26 Jul 2017 08:04:14 +0000 (UTC)
commit 92f49c5f42dd3b767c732a22e54418b0e5350cc2
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Jul 26 10:03:34 2017 +0200
Two more restrictions for Compujump
src/gui/encoder.cs | 7 ++++++-
src/gui/networks.cs | 3 +++
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 125bde4..5c98f7c 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -3428,7 +3428,12 @@ public partial class ChronoJumpWindow
hbox_combo_encoder_anchorage.PackStart(combo_encoder_anchorage, false, true, 0);
hbox_combo_encoder_anchorage.ShowAll();
- combo_encoder_anchorage.Sensitive = true;
+
+ //restriction for configured Compujump clients
+ if(configChronojump.Compujump)
+ combo_encoder_anchorage.Sensitive = false;
+ else
+ combo_encoder_anchorage.Sensitive = true;
hbox_combo_encoder_analyze_1RM.PackStart(combo_encoder_analyze_1RM, true, true, 0);
hbox_combo_encoder_analyze_1RM.ShowAll();
diff --git a/src/gui/networks.cs b/src/gui/networks.cs
index 238d2be..ef81ad5 100644
--- a/src/gui/networks.cs
+++ b/src/gui/networks.cs
@@ -275,6 +275,9 @@ public partial class ChronoJumpWindow
if(! configChronojump.UseVideo) {
alignment_video_encoder.Visible = false;
}
+ //restriction for configured Compujump clients
+ if(configChronojump.Compujump)
+ hbox_encoder_im_weights_n.Sensitive = false;
//show only power
if(configChronojump.OnlyEncoderGravitatory)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]