From b421a0edaa6c370e4232d007c5a8a3b88bed557d Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Sat, 21 Sep 2024 15:57:09 -0700 Subject: [PATCH] Add links to standard locations --- comictaggerlib/settingswindow.py | 15 +++++++++ comictaggerlib/ui/settingswindow.ui | 47 ++++++++++++++++++++++++++--- 2 files changed, 58 insertions(+), 4 deletions(-) diff --git a/comictaggerlib/settingswindow.py b/comictaggerlib/settingswindow.py index 137f8f2..bda8d2b 100644 --- a/comictaggerlib/settingswindow.py +++ b/comictaggerlib/settingswindow.py @@ -22,6 +22,7 @@ import os import pathlib import platform import shutil +import urllib.parse from typing import Any, cast import settngs @@ -205,6 +206,20 @@ class SettingsWindow(QtWidgets.QDialog): self.filename_parser_test() self.update_rar_path() + dirs = self.config.values.Runtime_Options__config + self.lbl_config_dir.setText( + f"Config Dir: {dirs.user_config_dir}" + ) + self.lbl_cache_dir.setText( + f"Config Dir: {dirs.user_cache_dir}" + ) + self.lbl_log_dir.setText( + f"Config Dir: {dirs.user_log_dir}" + ) + self.lbl_plugin_dir.setText( + f"Config Dir: {dirs.user_plugin_dir}" + ) + # Set General as start tab self.tabWidget.setCurrentIndex(0) diff --git a/comictaggerlib/ui/settingswindow.ui b/comictaggerlib/ui/settingswindow.ui index 7da30c3..d568560 100644 --- a/comictaggerlib/ui/settingswindow.ui +++ b/comictaggerlib/ui/settingswindow.ui @@ -123,10 +123,49 @@ - - - Qt::Horizontal - + + + + + + Config Directory: + + + true + + + + + + + Cache Directory: + + + true + + + + + + + Log Directory: + + + true + + + + + + + Plugin Directory: + + + true + + + +