🐛 Fixed breaking typo in location picking code
This commit is contained in:
@@ -265,7 +265,7 @@ class PreferencesWindow(Adw.PreferencesWindow):
|
|||||||
location = getattr(source, f"{location_name}_location")
|
location = getattr(source, f"{location_name}_location")
|
||||||
if location.check_candidate(path):
|
if location.check_candidate(path):
|
||||||
# Set the schema
|
# Set the schema
|
||||||
infix = "-cache" if location == "cache" else ""
|
infix = "-cache" if location_name == "cache" else ""
|
||||||
key = f"{source.id}{infix}-location"
|
key = f"{source.id}{infix}-location"
|
||||||
value = str(path)
|
value = str(path)
|
||||||
shared.schema.set_string(key, value)
|
shared.schema.set_string(key, value)
|
||||||
|
|||||||
Reference in New Issue
Block a user