about summary refs log tree commit diff stats
path: root/src/config/preferences.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-09-29 17:31:24 +0200
committerMichael Vetter <jubalh@iodoru.org>2021-09-29 17:32:54 +0200
commitba7b6c2e96be57c24e11c64f4d6e5c97f025516b (patch)
tree91d91594a82ceb8be2c6846ae95c292b80476741 /src/config/preferences.c
parent3b3a6b7a756e0f162d212249750524b7ce045cea (diff)
downloadprofani-tty-ba7b6c2e96be57c24e11c64f4d6e5c97f025516b.tar.gz
Clean sourcepath from profrc
See 3b3a6b7a756e0f162d212249750524b7ce045cea for sourcepath removal.
Diffstat (limited to 'src/config/preferences.c')
-rw-r--r--src/config/preferences.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index 0d913a36..114455fd 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -214,6 +214,11 @@ _prefs_load(void)
         }
     }
 
+    // 0.12 started to remove `sourcepath`
+    if (g_key_file_has_key(prefs, PREF_GROUP_PLUGINS, "sourcepath", NULL)) {
+        g_key_file_remove_key(prefs, PREF_GROUP_PLUGINS, "sourcepath", NULL);
+    }
+
     _save_prefs();
 
     boolean_choice_ac = autocomplete_new();