fix: add explanation for the logging feature under moderation (#6514)
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
- Minor: Fixed usercard resizing improperly without recent messages. (#6496)
|
- Minor: Fixed usercard resizing improperly without recent messages. (#6496)
|
||||||
- Minor: Added setting for character limit of deleted messages. (#6491)
|
- Minor: Added setting for character limit of deleted messages. (#6491)
|
||||||
- Minor: Added link support to plugin message API. (#6386)
|
- 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)
|
- Bugfix: Expose the "Extra extension IDs" setting on non-Windows systems too. (#6509)
|
||||||
- Dev: Update release documentation. (#6498)
|
- 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)
|
- 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)
|
||||||
|
|||||||
@@ -83,9 +83,15 @@ ModerationPage::ModerationPage()
|
|||||||
|
|
||||||
auto logsPathLabel = logs.emplace<QLabel>();
|
auto logsPathLabel = logs.emplace<QLabel>();
|
||||||
|
|
||||||
|
QString logExplanation =
|
||||||
|
"<span style=\"color:#bbb\"> They are saved as plain "
|
||||||
|
"text files per channel, containing the messages with "
|
||||||
|
"timestamps.</span>";
|
||||||
|
|
||||||
// Logs (copied from LoggingMananger)
|
// Logs (copied from LoggingMananger)
|
||||||
getSettings()->logPath.connect(
|
getSettings()->logPath.connect(
|
||||||
[logsPathLabel](const QString &logPath, auto) mutable {
|
[logsPathLabel, logExplanation](const QString &logPath,
|
||||||
|
auto) mutable {
|
||||||
QString pathOriginal =
|
QString pathOriginal =
|
||||||
logPath.isEmpty() ? getApp()->getPaths().messageLogDirectory
|
logPath.isEmpty() ? getApp()->getPaths().messageLogDirectory
|
||||||
: logPath;
|
: logPath;
|
||||||
@@ -93,10 +99,11 @@ ModerationPage::ModerationPage()
|
|||||||
QString pathShortened =
|
QString pathShortened =
|
||||||
"Logs are saved at <a href=\"file:///" + pathOriginal +
|
"Logs are saved at <a href=\"file:///" + pathOriginal +
|
||||||
R"("><span style="color: white;">)" +
|
R"("><span style="color: white;">)" +
|
||||||
shortenString(pathOriginal, 50) + "</span></a>";
|
shortenString(pathOriginal, 50) + ".</span></a>";
|
||||||
|
|
||||||
logsPathLabel->setText(pathShortened);
|
logsPathLabel->setText(pathShortened + logExplanation);
|
||||||
logsPathLabel->setToolTip(pathOriginal);
|
logsPathLabel->setToolTip(pathOriginal);
|
||||||
|
logsPathLabel->setWordWrap(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
logsPathLabel->setTextFormat(Qt::RichText);
|
logsPathLabel->setTextFormat(Qt::RichText);
|
||||||
|
|||||||
Reference in New Issue
Block a user