[chronojump] Clean warnings



commit c8f5604f96593b76e0e4ebda9d710fd3c6975671
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Dec 15 16:06:56 2021 +0100

    Clean warnings

 src/gui/jumpType.cs         |  2 +-
 src/gui/person/addModify.cs |  2 +-
 src/gui/preferences.cs      | 14 +++++++-------
 src/jumpsProfile.cs         |  1 +
 4 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/src/gui/jumpType.cs b/src/gui/jumpType.cs
index b42cbcbf2..c20efffc5 100644
--- a/src/gui/jumpType.cs
+++ b/src/gui/jumpType.cs
@@ -60,7 +60,7 @@ public class JumpTypeAddWindow
        [Widget] Gtk.RadioButton radiobutton_simple_startIn_yes;
        [Widget] Gtk.RadioButton radiobutton_simple_startIn_no;
        [Widget] Gtk.RadioButton radiobutton_multiple_startIn_yes;
-       [Widget] Gtk.RadioButton radiobutton_multiple_startIn_no;
+       //[Widget] Gtk.RadioButton radiobutton_multiple_startIn_no;
        [Widget] Gtk.RadioButton radiobutton_extra_weight_yes;
        [Widget] Gtk.RadioButton radiobutton_extra_weight_no;
        [Widget] Gtk.Label label_drop_jump;
diff --git a/src/gui/person/addModify.cs b/src/gui/person/addModify.cs
index 8ed18bcf8..61a37485e 100644
--- a/src/gui/person/addModify.cs
+++ b/src/gui/person/addModify.cs
@@ -407,7 +407,7 @@ public class PersonAddModifyWindow
                button_zoom.Sensitive = true;
        }
 
-       Gtk.Window capturerWindow;
+       //Gtk.Window capturerWindow;
        Webcam webcam;
        //CapturerBin capturer;
        void on_button_take_photo_preview_camera_clicked (object o, EventArgs args)
diff --git a/src/gui/preferences.cs b/src/gui/preferences.cs
index 8a6e75c99..e33d629ee 100644
--- a/src/gui/preferences.cs
+++ b/src/gui/preferences.cs
@@ -213,7 +213,7 @@ public class PreferencesWindow
        [Widget] Gtk.HBox hbox_camera_framerate_custom;
        [Widget] Gtk.SpinButton spin_camera_framerate_custom;
        [Widget] Gtk.Entry entry_camera_framerate_custom_decimals;
-       [Widget] Gtk.Label label_camera_pixel_format;
+       //[Widget] Gtk.Label label_camera_pixel_format;
        [Widget] Gtk.Label label_camera_pixel_format_current;
        [Widget] Gtk.Label label_camera_resolution_current;
        [Widget] Gtk.Label label_camera_framerate_current;
@@ -233,7 +233,7 @@ public class PreferencesWindow
        [Widget] Gtk.CheckButton check_camera_stop_after;
        [Widget] Gtk.CheckButton check_camera_advanced;
        [Widget] Gtk.Frame frame_camera_advanced;
-       [Widget] Gtk.VBox vbox_camera_stop_after_all;
+       //[Widget] Gtk.VBox vbox_camera_stop_after_all;
        //[Widget] Gtk.VBox vbox_camera_stop_after;
        [Widget] Gtk.HBox hbox_camera_stop_after_seconds;
        [Widget] Gtk.SpinButton spin_camera_stop_after;
@@ -271,7 +271,7 @@ public class PreferencesWindow
        [Widget] Gtk.RadioButton radio_python_3;
 
        [Widget] Gtk.Button button_accept;
-       [Widget] Gtk.Button button_cancel;
+       //[Widget] Gtk.Button button_cancel;
        [Widget] Gtk.Image image_button_accept;
        [Widget] Gtk.Image image_button_cancel;
        public Gtk.Button FakeButtonConfigurationImported;
@@ -285,8 +285,8 @@ public class PreferencesWindow
        private Preferences preferences; //stored to update SQL if anything changed
 //     private Thread thread;
 
-       string databaseURL;
-       string databaseTempURL;
+       //string databaseURL;
+       //string databaseTempURL;
        
        ListStore langsStore;
 
@@ -314,8 +314,8 @@ public class PreferencesWindow
                preferences_win.Title = Catalog.GetString("Preferences");
 
                //database and log files stuff
-               databaseURL = Util.GetDatabaseDir() + System.IO.Path.DirectorySeparatorChar  + 
"chronojump.db";
-               databaseTempURL = Util.GetDatabaseTempDir() + System.IO.Path.DirectorySeparatorChar  + 
"chronojump.db";
+               //databaseURL = Util.GetDatabaseDir() + System.IO.Path.DirectorySeparatorChar  + 
"chronojump.db";
+               //databaseTempURL = Util.GetDatabaseTempDir() + System.IO.Path.DirectorySeparatorChar  + 
"chronojump.db";
                
                FakeButtonConfigurationImported = new Gtk.Button();
                FakeButtonDebugModeStart = new Gtk.Button();
diff --git a/src/jumpsProfile.cs b/src/jumpsProfile.cs
index c05a7d8b7..f6ea2a05f 100644
--- a/src/jumpsProfile.cs
+++ b/src/jumpsProfile.cs
@@ -72,6 +72,7 @@ public class JumpsProfileIndex
                ErrorMessage = "";
                Result = calculateIndex(type, higher, lower, dja);
 
+               LogB.Information("errorCode: " + errorCode.ToString());
                if(errorCode == ErrorCodes.NEEDJUMP)
                        ErrorMessage = Catalog.GetString("Need to execute jump/s"); //TODO: write which jumps
                else if(errorCode == ErrorCodes.NEGATIVE)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]