changed settings paths

This commit is contained in:
fourtf
2018-06-21 13:02:34 +02:00
parent e0ecd97184
commit 2f91e3097a
17 changed files with 158 additions and 94 deletions
+4 -1
View File
@@ -25,13 +25,16 @@ LoggingChannel::LoggingChannel(const QString &_channelName)
this->subDirectory = QStringLiteral("Channels") + QDir::separator() + channelName;
}
// FOURTF: change this when adding more providers
this->subDirectory = "Twitch/" + this->subDirectory;
auto app = getApp();
app->settings->logPath.connect([this](const QString &logPath, auto) {
auto app = getApp();
if (logPath.isEmpty()) {
this->baseDirectory = app->paths->logsFolderPath;
this->baseDirectory = app->paths->messageLogDirectory;
} else {
this->baseDirectory = logPath;
}