diff options
| author | windrammer <31085911+likeawindrammer@users.noreply.github.com> | 2020-07-31 14:14:39 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-31 15:14:39 -0500 |
| commit | 36b5af3cb9ce8e5530c5bd9353a4e2f10da506b6 (patch) | |
| tree | 19e9217126837cac1ae3ab025b050bb3cfbda64b /src/aooptionsdialog.cpp | |
| parent | bab10ea14ddaf7af7aeeff925b373be1c347d0d7 (diff) | |
Add option for automatic logging (#203)
Just so we're on the same page, this is enabled by default.
Co-authored-by: Cents02 <Cents02@Cents0.me>
Diffstat (limited to 'src/aooptionsdialog.cpp')
| -rw-r--r-- | src/aooptionsdialog.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/aooptionsdialog.cpp b/src/aooptionsdialog.cpp index 79f1d11f..6cedee8d 100644 --- a/src/aooptionsdialog.cpp +++ b/src/aooptionsdialog.cpp @@ -699,6 +699,20 @@ AOOptionsDialog::AOOptionsDialog(QWidget *parent, AOApplication *p_ao_app) ui_casing_layout->setWidget(row, QFormLayout::FieldRole, ui_casing_cm_cases_textbox); + //Check whether mass logging is enabled + row += 1; + ui_log_lbl = new QLabel(ui_casing_widget); + ui_log_lbl->setText(tr("Automatic Logging:")); + ui_log_lbl->setToolTip( + tr("If checked, all logs will be automatically written in the " + "/logs folder.")); + + ui_casing_layout->setWidget(row, QFormLayout::LabelRole, ui_log_lbl); + + ui_log_cb = new QCheckBox(ui_casing_widget); + ui_log_cb->setChecked(ao_app->get_auto_logging_enabled()); + + ui_casing_layout->setWidget(row, QFormLayout::FieldRole, ui_log_cb); // When we're done, we should continue the updates! setUpdatesEnabled(true); @@ -725,7 +739,7 @@ void AOOptionsDialog::save_pressed() configini->setValue("stickyeffects", ui_stickyeffects_cb->isChecked()); configini->setValue("stickypres", ui_stickypres_cb->isChecked()); configini->setValue("customchat", ui_customchat_cb->isChecked()); - + configini->setValue("automatic_logging_enabled", ui_log_cb->isChecked()); QFile *callwordsini = new QFile(ao_app->get_base_path() + "callwords.ini"); if (callwordsini->open(QIODevice::WriteOnly | QIODevice::Truncate | |
