[chronojump] Compujump small fixes
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Compujump small fixes
- Date: Thu, 22 Feb 2018 17:05:57 +0000 (UTC)
commit 607abe6e2ae686bf807ca3de00250e1eb6edc4fa
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Feb 22 18:03:29 2018 +0100
Compujump small fixes
howto_compujump_client.txt | 3 ++-
src/gui/networks.cs | 7 ++++---
2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/howto_compujump_client.txt b/howto_compujump_client.txt
index 0e75dd0..7c13c0c 100644
--- a/howto_compujump_client.txt
+++ b/howto_compujump_client.txt
@@ -25,7 +25,8 @@ $groups
$ sqlite3 .local/share/Chronojump/chronojump.db
delete from encoderExercise;
-11) delete runInterval exercises. And Add these:
+11) if the station will be runInterval:
+delete runInterval exercises. And Add these:
delete from runIntervalType;
insert into runIntervalType VALUES(1, "5 m", 5.0, 1, 1, 0, "", "");
diff --git a/src/gui/networks.cs b/src/gui/networks.cs
index 296ef01..2d0d76b 100644
--- a/src/gui/networks.cs
+++ b/src/gui/networks.cs
@@ -220,7 +220,8 @@ public partial class ChronoJumpWindow
private void configInitFromPreferences()
{
- configChronojump = new Config();
+ if(configChronojump == null)
+ configChronojump = new Config();
configChronojump.Maximized = preferences.maximized;
configChronojump.PersonWinHide = preferences.personWinHide;
@@ -232,7 +233,7 @@ public partial class ChronoJumpWindow
private void configDo()
{
- LogB.Information("Config:\n" + configChronojump.ToString());
+ LogB.Information("Is Compujump?:\n" + configChronojump.Compujump.ToString());
/*
* TODO: do an else to any option
@@ -518,7 +519,7 @@ public partial class ChronoJumpWindow
if(json.LastPersonWasInserted)
{
string imageFile = json.LastPersonByRFIDImageURL;
- if(imageFile != "")
+ if(imageFile != null && imageFile != "")
{
string image_dest = Util.GetPhotoFileName(false,
currentPerson.UniqueID);
if(UtilMultimedia.GetImageType(imageFile) ==
UtilMultimedia.ImageTypes.PNG)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]