diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f03fdf6..69a4b9fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Minor: Fixed usercard resizing improperly without recent messages. (#6496) - Minor: Added setting for character limit of deleted messages. (#6491) - Minor: Added link support to plugin message API. (#6386) +- Minor: Added a description for the logging option under moderation tab. (#6514) - Bugfix: Expose the "Extra extension IDs" setting on non-Windows systems too. (#6509) - Dev: Update release documentation. (#6498) - Dev: Make code sanitizers opt in with the `CHATTERINO_SANITIZER_SUPPORT` CMake option. After that's enabled, use the `SANITIZE_*` flag to enable individual sanitizers. (#6493) diff --git a/src/widgets/settingspages/ModerationPage.cpp b/src/widgets/settingspages/ModerationPage.cpp index fa983a49..032e81f3 100644 --- a/src/widgets/settingspages/ModerationPage.cpp +++ b/src/widgets/settingspages/ModerationPage.cpp @@ -83,9 +83,15 @@ ModerationPage::ModerationPage() auto logsPathLabel = logs.emplace(); + QString logExplanation = + " They are saved as plain " + "text files per channel, containing the messages with " + "timestamps."; + // Logs (copied from LoggingMananger) getSettings()->logPath.connect( - [logsPathLabel](const QString &logPath, auto) mutable { + [logsPathLabel, logExplanation](const QString &logPath, + auto) mutable { QString pathOriginal = logPath.isEmpty() ? getApp()->getPaths().messageLogDirectory : logPath; @@ -93,10 +99,11 @@ ModerationPage::ModerationPage() QString pathShortened = "Logs are saved at )" + - shortenString(pathOriginal, 50) + ""; + shortenString(pathOriginal, 50) + "."; - logsPathLabel->setText(pathShortened); + logsPathLabel->setText(pathShortened + logExplanation); logsPathLabel->setToolTip(pathOriginal); + logsPathLabel->setWordWrap(true); }); logsPathLabel->setTextFormat(Qt::RichText);