[chronojump] Code for selecting python version but commented
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Code for selecting python version but commented
- Date: Fri, 29 May 2020 08:56:46 +0000 (UTC)
commit f6e18b329b0a2b0eeca3272925c544ac8b08fa2e
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri May 29 10:56:16 2020 +0200
Code for selecting python version but commented
src/preferences.cs | 5 +++++
src/sqlite/main.cs | 13 +++++++++++++
src/sqlite/preferences.cs | 2 ++
3 files changed, 20 insertions(+)
---
diff --git a/src/preferences.cs b/src/preferences.cs
index e9943184..c55fb3b9 100644
--- a/src/preferences.cs
+++ b/src/preferences.cs
@@ -143,6 +143,11 @@ public class Preferences
public bool muteLogs;
public bool networksAllowChangeDevices; //managed on preferences;
+ /*
+ public enum pythonVersion { Python, Python2, Python3 };
+ public PythonVersion importerPythonVersion;
+ */
+
/*
* these are NOT sent to preferences window
*/
diff --git a/src/sqlite/main.cs b/src/sqlite/main.cs
index f6336e70..86f55827 100644
--- a/src/sqlite/main.cs
+++ b/src/sqlite/main.cs
@@ -2712,7 +2712,17 @@ class Sqlite
currentVersion = updateVersion("1.94");
}
+ /*
+ if(currentVersion == "1.94")
+ {
+ LogB.SQL("Inserted into preferences: importerPythonVersion");
+ SqlitePreferences.Insert (Preferences.importerPythonVersion,
+ Preferences.pythonVersion.Python.ToString());
+
+ currentVersion = updateVersion("1.95");
+ }
+ */
/*
if(currentVersion == "1.79")
{
@@ -2925,6 +2935,9 @@ class Sqlite
//changes [from - to - desc]
//just testing: 1.79 - 1.80 Converted DB to 1.80 Created table ForceSensorElasticBandGlue and moved
stiffnessString records there
+//just testing: 1.94 - 1.95 Converted DB to 1.95 Inserted into preferences: importerPythonVersion
+//
+//
//
//1.93 - 1.94 Converted DB to 1.94 Inserted into preferences:
RunEncoderAnalyzeAccel/Force/Power
//1.92 - 1.93 Converted DB to 1.93 Inserted into preferences: EncoderCaptureInfinite,
LogoAnimatedShow
diff --git a/src/sqlite/preferences.cs b/src/sqlite/preferences.cs
index 87b7e1e2..69b21bec 100644
--- a/src/sqlite/preferences.cs
+++ b/src/sqlite/preferences.cs
@@ -272,6 +272,8 @@ class SqlitePreferences : Sqlite
Insert (EncoderAutoSaveCurveBestNValue, "3", dbcmdTr);
Insert ("email", "", dbcmdTr);
Insert ("muteLogs", "False", dbcmdTr);
+ //Insert (Preferences.importerPythonVersion,
Preferences.pythonVersion.Python.ToString(), dbcmdTr);
+
//removed on 1.37
//Insert ("encoderConfiguration", new
EncoderConfiguration().ToStringOutput(EncoderConfiguration.Outputs.SQL), dbcmdTr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]