[chronojump] Logo animated not shown by default on mac (until Big Sur improves)
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Logo animated not shown by default on mac (until Big Sur improves)
- Date: Fri, 2 Jul 2021 14:42:04 +0000 (UTC)
commit 456c2f7a05a198dc8bc49b054f939e8b7ee8867b
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Jul 2 16:41:35 2021 +0200
Logo animated not shown by default on mac (until Big Sur improves)
src/sqlite/main.cs | 15 +++++++++++++--
src/sqlite/preferences.cs | 10 ++++++++--
2 files changed, 21 insertions(+), 4 deletions(-)
---
diff --git a/src/sqlite/main.cs b/src/sqlite/main.cs
index 0115d550f..3e9114f29 100644
--- a/src/sqlite/main.cs
+++ b/src/sqlite/main.cs
@@ -129,7 +129,7 @@ class Sqlite
/*
* Important, change this if there's any update to database
*/
- static string lastChronojumpDatabaseVersion = "2.23";
+ static string lastChronojumpDatabaseVersion = "2.24";
public Sqlite()
{
@@ -627,6 +627,8 @@ class Sqlite
SqliteMultiChronopic sqliteMultiChronopicObject = new SqliteMultiChronopic();
SqlitePersonSessionOld sqlitePersonSessionOldObject = new SqlitePersonSessionOld();
+ UtilAll.OperatingSystems os = UtilAll.GetOSEnum();
+
if(currentVersion == "0.41") {
Sqlite.Open();
@@ -2265,7 +2267,6 @@ class Sqlite
{
LogB.SQL("Updated preferences: added gstreamer");
- UtilAll.OperatingSystems os = UtilAll.GetOSEnum();
if(os == UtilAll.OperatingSystems.WINDOWS)
SqlitePreferences.Insert (Preferences.GstreamerStr,
Preferences.GstreamerTypes.SYSTEMSOUNDS.ToString());
else if(os == UtilAll.OperatingSystems.MACOSX)
@@ -3019,6 +3020,15 @@ class Sqlite
currentVersion = updateVersion("2.23");
}
+ if(currentVersion == "2.23")
+ {
+ LogB.SQL("LogoAnimatedShow made False by default on Mac (thinking on Big Sur
problems)");
+
+ if(os == UtilAll.OperatingSystems.MACOSX)
+ SqlitePreferences.Update (SqlitePreferences.LogoAnimatedShow,
"False", true);
+
+ currentVersion = updateVersion("2.24");
+ }
/*
@@ -3240,6 +3250,7 @@ class Sqlite
//just testing: 1.79 - 1.80 Converted DB to 1.80 Created table ForceSensorElasticBandGlue and moved
stiffnessString records there
+ //2.23 - 2.24 Converted DB to 2.24 LogoAnimatedShow made False by default on Mac
//2.22 - 2.23 Converted DB to 2.23 Inserted socialNetwork variables at preferences
//2.21 - 2.22 Converted DB to 2.22 Inserted forceSensorFeedbackPath params
//2.20 - 2.21 Converted DB to 2.21 Inserted into preferences: runsEvolutionShowTime
diff --git a/src/sqlite/preferences.cs b/src/sqlite/preferences.cs
index aa1d7966f..cf868b1b2 100644
--- a/src/sqlite/preferences.cs
+++ b/src/sqlite/preferences.cs
@@ -170,7 +170,14 @@ class SqlitePreferences : Sqlite
Insert ("personPhoto", "True", dbcmdTr);
Insert (PersonSelectWinImages, "True", dbcmdTr);
Insert (MenuType, Preferences.MenuTypes.ALL.ToString(), dbcmdTr);
- Insert (LogoAnimatedShow, "True", dbcmdTr);
+
+ UtilAll.OperatingSystems os = UtilAll.GetOSEnum();
+
+ if(os == UtilAll.OperatingSystems.MACOSX)
+ Insert (LogoAnimatedShow, "False", dbcmdTr); //false until fixed Big
Sur problems
+ else
+ Insert (LogoAnimatedShow, "True", dbcmdTr);
+
Insert (ColorBackground, "#0e1e46", dbcmdTr);
Insert (ColorBackgroundOsColor, "False", dbcmdTr);
Insert (FontsOnGraphs, Preferences.FontTypes.Helvetica.ToString(), dbcmdTr);
@@ -197,7 +204,6 @@ class SqlitePreferences : Sqlite
Insert ("allowFinishRjAfterTime", "True", dbcmdTr);
Insert ("volumeOn", "True", dbcmdTr);
- UtilAll.OperatingSystems os = UtilAll.GetOSEnum();
if(os == UtilAll.OperatingSystems.WINDOWS)
Insert (Preferences.GstreamerStr,
Preferences.GstreamerTypes.SYSTEMSOUNDS.ToString());
else if(os == UtilAll.OperatingSystems.MACOSX)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]