🐛 Fixed breaking typo in location picking code

This commit is contained in:
GeoffreyCoulaud
2023-06-19 23:33:51 +02:00
parent e97c08a42b
commit 6408e250ee

View File

@@ -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)