@@ -699,6 +699,20 @@ AOOptionsDialog::AOOptionsDialog(QWidget *parent, AOApplication *p_ao_app)
699699
700700 ui_casing_layout->setWidget (row, QFormLayout::FieldRole,
701701 ui_casing_cm_cases_textbox);
702+ // Check whether mass logging is enabled
703+ row += 1 ;
704+ ui_log_lbl = new QLabel (ui_casing_widget);
705+ ui_log_lbl->setText (tr (" Automatic Logging:" ));
706+ ui_log_lbl->setToolTip (
707+ tr (" If checked, all logs will be automatically written in the "
708+ " /logs folder." ));
709+
710+ ui_casing_layout->setWidget (row, QFormLayout::LabelRole, ui_log_lbl);
711+
712+ ui_log_cb = new QCheckBox (ui_casing_widget);
713+ ui_log_cb->setChecked (ao_app->get_auto_logging_enabled ());
714+
715+ ui_casing_layout->setWidget (row, QFormLayout::FieldRole, ui_log_cb);
702716
703717 // When we're done, we should continue the updates!
704718 setUpdatesEnabled (true );
@@ -725,7 +739,7 @@ void AOOptionsDialog::save_pressed()
725739 configini->setValue (" stickyeffects" , ui_stickyeffects_cb->isChecked ());
726740 configini->setValue (" stickypres" , ui_stickypres_cb->isChecked ());
727741 configini->setValue (" customchat" , ui_customchat_cb->isChecked ());
728-
742+ configini-> setValue ( " automatic_logging_enabled " , ui_log_cb-> isChecked ());
729743 QFile *callwordsini = new QFile (ao_app->get_base_path () + " callwords.ini" );
730744
731745 if (callwordsini->open (QIODevice::WriteOnly | QIODevice::Truncate |
0 commit comments