Removed unused local vars. Slightly refactored code.

This commit is contained in:
23rd
2019-05-04 20:39:58 +03:00
committed by pajlada
parent 2d21bb0695
commit efec76df5b
10 changed files with 4 additions and 36 deletions
-3
View File
@@ -387,10 +387,7 @@ void WindowManager::initialize(Settings &settings, Paths &paths)
void WindowManager::save()
{
log("[WindowManager] Saving");
assertInGuiThread();
auto app = getApp();
QJsonDocument document;
// "serialize"
+3 -13
View File
@@ -33,20 +33,10 @@ LoggingChannel::LoggingChannel(const QString &_channelName)
// FOURTF: change this when adding more providers
this->subDirectory = "Twitch/" + this->subDirectory;
auto app = getApp();
getSettings()->logPath.connect([this](const QString &logPath, auto) {
auto app = getApp();
if (logPath.isEmpty())
{
this->baseDirectory = getPaths()->messageLogDirectory;
}
else
{
this->baseDirectory = logPath;
}
this->baseDirectory = logPath.isEmpty()
? getPaths()->messageLogDirectory
: logPath;
this->openLogFile();
});
}