src/settingseditor/settingseditor.cpp

changeset 237
10a6298f636f
parent 218
63125c36de73
child 256
c6f5de03dc0f
--- a/src/settingseditor/settingseditor.cpp	Mon Jun 20 18:40:22 2022 +0300
+++ b/src/settingseditor/settingseditor.cpp	Mon Jun 20 19:49:56 2022 +0300
@@ -45,6 +45,7 @@
 	setSetting<Setting::SelectedColor>(this->ui.selectedColorButton->selectedColor());
 	setSetting<Setting::LineThickness>(static_cast<GLfloat>(this->ui.lineThickness->value()));
 	setSetting<Setting::LineAntiAliasing>(this->ui.lineAntiAliasing->isChecked());
+	setSetting<Setting::LogOpenGLDebugMessages>(this->ui.logOpenGLDebugMessages->isChecked());
 	const int viewMode = this->ui.viewModeButtonGroup->checkedId();
 	if (viewMode != -1) {
 		setSetting<Setting::ViewMode>(static_cast<QMdiArea::ViewMode>(viewMode));
@@ -82,6 +83,7 @@
 	this->ui.selectedColorButton->setSelectedColor(setting<Setting::SelectedColor>());
 	this->ui.lineThickness->setValue(double_cast(setting<Setting::LineThickness>()));
 	this->ui.lineAntiAliasing->setChecked(setting<Setting::LineAntiAliasing>());
+	this->ui.logOpenGLDebugMessages->setChecked(setting<Setting::LogOpenGLDebugMessages>());
 	auto* const viewModeButton = this->ui.viewModeButtonGroup->button(setting<Setting::ViewMode>());
 	if (viewModeButton != nullptr) {
 		viewModeButton->setChecked(true);

mercurial