From a4bebdd4a9a083defa2a62b6877250ce386e835c Mon Sep 17 00:00:00 2001 From: GeoffreyCoulaud Date: Wed, 5 Jul 2023 14:34:14 +0200 Subject: [PATCH] Changed invalid location textx --- src/preferences.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/preferences.py b/src/preferences.py index f090b4a..2feec84 100644 --- a/src/preferences.py +++ b/src/preferences.py @@ -345,14 +345,17 @@ class PreferencesWindow(Adw.PreferencesWindow): # Bad picked location, inform user else: - if location_name == "cache": - title = _("Invalid Directory") - # The variable is the name of the source - subtitle_format = _("Select the {} cache directory.") - else: - title = _("Invalid Directory") - # The variable is the name of the source - subtitle_format = _("Select the {} installation directory.") + title = _("Invalid Directory") + match location_name: + case "cache": + # The variable is the name of the source + subtitle_format = _("Select the {} cache directory.") + case "config": + # The variable is the name of the source + subtitle_format = _("Select the {} configuration directory.") + case "data": + # The variable is the name of the source + subtitle_format = _("Select the {} data directory.") dialog = create_dialog( self, title,