[chronojump] On networks / encoder, checkbox to upload or not the captured data
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] On networks / encoder, checkbox to upload or not the captured data
- Date: Fri, 18 Dec 2020 15:38:35 +0000 (UTC)
commit 5b24cc1558439d66eca9531b4e10627a14564219
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Dec 18 16:38:12 2020 +0100
On networks / encoder, checkbox to upload or not the captured data
glade/app1.glade | 32 ++++++++++++++++++++++++++++++++
src/gui/app1/encoder.cs | 2 +-
src/gui/networks.cs | 4 ++++
3 files changed, 37 insertions(+), 1 deletion(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index d83a7e60..1e0fbb38 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -27551,6 +27551,31 @@ Concentric</property>
<property name="can_focus">False</property>
<property name="spacing">8</property>
<child>
+ <widget class="GtkVBox" id="vbox132">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <widget class="GtkAlignment"
id="alignment_check_encoder_networks_upload">
+ <property name="can_focus">False</property>
+ <property name="bottom_padding">4</property>
+ <child>
+ <widget class="GtkCheckButton"
id="check_encoder_networks_upload">
+ <property name="label"
translatable="yes">Upload</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property
name="receives_default">False</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
<widget class="GtkButton"
id="button_encoder_capture">
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -27573,6 +27598,13 @@ Concentric</property>
</child>
</widget>
<packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
diff --git a/src/gui/app1/encoder.cs b/src/gui/app1/encoder.cs
index cba9fa89..9db98548 100644
--- a/src/gui/app1/encoder.cs
+++ b/src/gui/app1/encoder.cs
@@ -6884,7 +6884,7 @@ public partial class ChronoJumpWindow
//check if encoderCaptureCurves > 0
//(this is the case of a capture without repetitions or can
have on ending cont mode)
- if(configChronojump.Compujump && encoderCaptureCurves.Count >
0)
+ if(configChronojump.Compujump &&
check_encoder_networks_upload.Active && encoderCaptureCurves.Count > 0)
{
uploadEncoderDataObjectIfPossible();
}
diff --git a/src/gui/networks.cs b/src/gui/networks.cs
index a5d9c15c..3f6ae26c 100644
--- a/src/gui/networks.cs
+++ b/src/gui/networks.cs
@@ -78,6 +78,8 @@ public partial class ChronoJumpWindow
[Widget] Gtk.VBox vbox_treeview_encoder_at_second_page;
//encoder ...
+ [Widget] Gtk.Alignment alignment_check_encoder_networks_upload;
+ [Widget] Gtk.CheckButton check_encoder_networks_upload;
[Widget] Gtk.Button button_encoder_monthly_change_current_session;
[Widget] Gtk.Button button_encoder_analyze_image_compujump_send_email;
/*
@@ -181,6 +183,8 @@ public partial class ChronoJumpWindow
showWebcamCaptureContactsControls (false); //contacts
hbox_video_encoder.Visible = false;
+ alignment_check_encoder_networks_upload.Visible = true;
+
//networks always without lateral person win
//also this is important for seing label_rfid_encoder_wait
SqlitePreferences.Update("personWinHide", "True", false);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]