mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Remove getPaths() usage from ModerationPage
This commit is contained in:
parent
6d0db89856
commit
4993a77b86
1 changed files with 3 additions and 2 deletions
|
@ -54,7 +54,7 @@ QString formatSize(qint64 size)
|
||||||
QString fetchLogDirectorySize()
|
QString fetchLogDirectorySize()
|
||||||
{
|
{
|
||||||
QString logsDirectoryPath = getSettings()->logPath.getValue().isEmpty()
|
QString logsDirectoryPath = getSettings()->logPath.getValue().isEmpty()
|
||||||
? getPaths()->messageLogDirectory
|
? getIApp()->getPaths().messageLogDirectory
|
||||||
: getSettings()->logPath;
|
: getSettings()->logPath;
|
||||||
|
|
||||||
auto logsSize = dirSize(logsDirectoryPath);
|
auto logsSize = dirSize(logsDirectoryPath);
|
||||||
|
@ -82,7 +82,8 @@ ModerationPage::ModerationPage()
|
||||||
getSettings()->logPath.connect([logsPathLabel](const QString &logPath,
|
getSettings()->logPath.connect([logsPathLabel](const QString &logPath,
|
||||||
auto) mutable {
|
auto) mutable {
|
||||||
QString pathOriginal =
|
QString pathOriginal =
|
||||||
logPath.isEmpty() ? getPaths()->messageLogDirectory : logPath;
|
logPath.isEmpty() ? getIApp()->getPaths().messageLogDirectory
|
||||||
|
: logPath;
|
||||||
|
|
||||||
QString pathShortened =
|
QString pathShortened =
|
||||||
"Logs are saved at <a href=\"file:///" + pathOriginal +
|
"Logs are saved at <a href=\"file:///" + pathOriginal +
|
||||||
|
|
Loading…
Reference in a new issue