mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Remove getPaths() usage from LoggingChannel
This commit is contained in:
parent
f524f3b911
commit
199b22d013
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
#include "LoggingChannel.hpp"
|
#include "LoggingChannel.hpp"
|
||||||
|
|
||||||
|
#include "Application.hpp"
|
||||||
#include "common/QLogging.hpp"
|
#include "common/QLogging.hpp"
|
||||||
#include "messages/Message.hpp"
|
#include "messages/Message.hpp"
|
||||||
#include "messages/MessageThread.hpp"
|
#include "messages/MessageThread.hpp"
|
||||||
|
@ -44,8 +45,9 @@ LoggingChannel::LoggingChannel(const QString &_channelName,
|
||||||
QDir::separator() + this->subDirectory;
|
QDir::separator() + this->subDirectory;
|
||||||
|
|
||||||
getSettings()->logPath.connect([this](const QString &logPath, auto) {
|
getSettings()->logPath.connect([this](const QString &logPath, auto) {
|
||||||
this->baseDirectory =
|
this->baseDirectory = logPath.isEmpty()
|
||||||
logPath.isEmpty() ? getPaths()->messageLogDirectory : logPath;
|
? getIApp()->getPaths().messageLogDirectory
|
||||||
|
: logPath;
|
||||||
this->openLogFile();
|
this->openLogFile();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue