[shotwell] Fix wrong "profile" from path when using default



commit 2bc3c1de135cdb8b518cd047d6595a34fe5ed98b
Author: Jens Georg <mail jensge org>
Date:   Sat Aug 13 06:48:39 2022 +0200

    Fix wrong "profile" from path when using default
    
    Causes e.g. constant re-evaluating of video-thumbnails
    
    Fixes #18

 src/config/GSettingsEngine.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/config/GSettingsEngine.vala b/src/config/GSettingsEngine.vala
index 20527abd..e822d385 100644
--- a/src/config/GSettingsEngine.vala
+++ b/src/config/GSettingsEngine.vala
@@ -186,7 +186,7 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object {
         if (!this.settings_cache.has_key(schema)) {
             if (schema.has_prefix (ROOT_SCHEMA_NAME)) {
                 var path = schema.replace(ROOT_SCHEMA_NAME, "");
-                path = "/org/gnome/shotwell/%s%s/".printf(profile == null ? "" : "profiles/" + profile, 
path.replace(".", "/"));
+                path = "/org/gnome/shotwell/%s%s/".printf(profile == "" ? "" : "profiles/" + profile, 
path.replace(".", "/"));
                 path = path.replace("//", "/");
                 this.settings_cache[schema] = new Settings.with_path (schema, path);
             } else {


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