feat: Make log writing in other thread.
This commit is contained in:
@@ -74,7 +74,7 @@ void UserOperationLog::log(const QString& aOperationText)
|
||||
void UserOperationLog::reloadFile() {
|
||||
QString newFileName = logDir + QDate::currentDate().toString("/yyyy-MM-dd")+QString("-op.log");
|
||||
//inprocessing 暂时没有使用
|
||||
if (newFileName == currentFileName && !AppGlobalValues::InProcessing().toBool()) return;
|
||||
if (newFileName == currentFileName) return;
|
||||
logFile.close();
|
||||
logFile.setFileName(newFileName);
|
||||
if (logFile.exists())
|
||||
|
||||
Reference in New Issue
Block a user