Add links to standard locations

This commit is contained in:
Timmy Welch 2024-09-21 15:57:09 -07:00
parent a9fdafdb93
commit b421a0edaa
2 changed files with 58 additions and 4 deletions

View File

@ -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: <a href='file://{urllib.parse.quote(str(dirs.user_config_dir))}'>{dirs.user_config_dir}</a>"
)
self.lbl_cache_dir.setText(
f"Config Dir: <a href='file://{urllib.parse.quote(str(dirs.user_cache_dir))}'>{dirs.user_cache_dir}</a>"
)
self.lbl_log_dir.setText(
f"Config Dir: <a href='file://{urllib.parse.quote(str(dirs.user_log_dir))}'>{dirs.user_log_dir}</a>"
)
self.lbl_plugin_dir.setText(
f"Config Dir: <a href='file://{urllib.parse.quote(str(dirs.user_plugin_dir))}'>{dirs.user_plugin_dir}</a>"
)
# Set General as start tab
self.tabWidget.setCurrentIndex(0)

View File

@ -123,10 +123,49 @@
</widget>
</item>
<item>
<widget class="Line" name="line_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<widget class="QGroupBox" name="groupBox_9">
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QLabel" name="lbl_config_dir">
<property name="text">
<string>Config Directory:</string>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lbl_cache_dir">
<property name="text">
<string>Cache Directory:</string>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lbl_log_dir">
<property name="text">
<string>Log Directory:</string>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lbl_plugin_dir">
<property name="text">
<string>Plugin Directory:</string>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>