diff options
| author | Warry <FunWarry@users.noreply.github.com> | 2025-12-03 09:35:42 +0100 |
|---|---|---|
| committer | Warry <FunWarry@users.noreply.github.com> | 2025-12-03 09:35:42 +0100 |
| commit | c077e2b4977ea3219bce9a0f7c4518e0838baf87 (patch) | |
| tree | f4de9246f6e98109917f8ce6626179e2f87162c2 /tidal_dl_ng/dialog.py | |
| parent | 8905ac7e75029a772d92dc2898976ebb0e79acd3 (diff) | |
| parent | 45977986dfa7dde065233099b4c86c74cc9ea163 (diff) | |
| download | tidal-dl-ng-c077e2b4977ea3219bce9a0f7c4518e0838baf87.tar.gz | |
Merge remote-tracking branch 'warry-github/master' into feature/informations-window
# Conflicts:
# CONTRIBUTING.md
# README.md
Diffstat (limited to 'tidal_dl_ng/dialog.py')
| -rw-r--r-- | tidal_dl_ng/dialog.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tidal_dl_ng/dialog.py b/tidal_dl_ng/dialog.py index 8cb93f6..336b88b 100644 --- a/tidal_dl_ng/dialog.py +++ b/tidal_dl_ng/dialog.py @@ -203,7 +203,7 @@ class DialogPreferences(QtWidgets.QDialog): ): # If a path is set, use it otherwise the users home directory. path_settings: str = os.path.expanduser(obj_line_edit.text()) if obj_line_edit.text() else "" - # Check if obj_line_edit is empty but path_default can be usd instead + # Check if obj_line_edit is empty but path_default can be used instead path_settings = ( path_settings if path_settings else os.path.expanduser(path_default) if path_default else path_settings ) @@ -223,7 +223,7 @@ class DialogPreferences(QtWidgets.QDialog): dialog.setDirectory(dir_current) - # Execute dialog and set path is something is choosen. + # Execute dialog and set path if something is chosen. if dialog.exec(): dir_name: str = dialog.selectedFiles()[0] path: Path = Path(dir_name) |
