From 6408e250eeb8ffba80181289208215482002aeb9 Mon Sep 17 00:00:00 2001 From: GeoffreyCoulaud Date: Mon, 19 Jun 2023 23:33:51 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20breaking=20typo=20in=20l?= =?UTF-8?q?ocation=20picking=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/preferences.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preferences.py b/src/preferences.py index 2944bc8..dc25957 100644 --- a/src/preferences.py +++ b/src/preferences.py @@ -265,7 +265,7 @@ class PreferencesWindow(Adw.PreferencesWindow): location = getattr(source, f"{location_name}_location") if location.check_candidate(path): # Set the schema - infix = "-cache" if location == "cache" else "" + infix = "-cache" if location_name == "cache" else "" key = f"{source.id}{infix}-location" value = str(path) shared.schema.set_string(key, value)