Removed unused local vars. Slightly refactored code.
This commit is contained in:
@@ -387,10 +387,7 @@ void WindowManager::initialize(Settings &settings, Paths &paths)
|
||||
void WindowManager::save()
|
||||
{
|
||||
log("[WindowManager] Saving");
|
||||
|
||||
assertInGuiThread();
|
||||
auto app = getApp();
|
||||
|
||||
QJsonDocument document;
|
||||
|
||||
// "serialize"
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user