mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-19 13:23:55 -07:00
log cleanup (#3207)
This commit is contained in:
parent
2780270911
commit
661e00f563
3 changed files with 20 additions and 18 deletions
|
|
@ -16,7 +16,7 @@ DlgViewLog::DlgViewLog(QWidget *parent) : QDialog(parent)
|
|||
|
||||
coClearLog = new QCheckBox;
|
||||
coClearLog->setText(tr("Clear log when closing"));
|
||||
coClearLog->setChecked(settingsCache->servers().getClearDebugLogStatus(true));
|
||||
coClearLog->setChecked(settingsCache->servers().getClearDebugLogStatus(false));
|
||||
connect(coClearLog, SIGNAL(toggled(bool)), this, SLOT(actCheckBoxChanged(bool)));
|
||||
mainLayout->addWidget(coClearLog);
|
||||
|
||||
|
|
@ -50,8 +50,8 @@ void DlgViewLog::closeEvent(QCloseEvent * /* event */)
|
|||
{
|
||||
if (coClearLog->isChecked()) {
|
||||
logArea->clear();
|
||||
}
|
||||
|
||||
logArea->appendPlainText(Logger::getInstance().getClientVersion());
|
||||
logArea->appendPlainText(Logger::getInstance().getSystemArchitecture());
|
||||
logArea->appendPlainText(Logger::getInstance().getClientVersion());
|
||||
logArea->appendPlainText(Logger::getInstance().getSystemArchitecture());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue