Log: Start logging immediately when "permanent logs" enabled #7146

Previously one would need to wait for the next sync run to create the
first log file.
This commit is contained in:
Christian Kamm 2019-04-16 09:18:19 +02:00 committed by Kevin Ottens
parent 772a210cc9
commit 076e24f465
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -116,6 +116,7 @@ void LogBrowser::togglePermanentLogging(bool enabled)
if (enabled) {
if (!logger->isLoggingToFile()) {
logger->setupTemporaryFolderLogDir();
logger->enterNextLogFile();
}
} else {
logger->disableTemporaryFolderLogDir();