Commit ae747cbc authored by Martin Schultz's avatar Martin Schultz

also store glStereo setting in options widget, when apply is clicked

parent 14a003a3
......@@ -300,12 +300,12 @@ void OptionsWidget::showEvent ( QShowEvent * /*event*/ ) {
warning.setColor(samplesWarning->foregroundRole(),Qt::black);
samplesWarning->setPalette(warning);
stereoCheckBox->setChecked(OpenFlipper::Options::glStereo());
stereoCheckBox->setChecked(OpenFlipper::Options::glStereoRequested());
QPalette stereoWarn = stereoWarning->palette();
QString stereoValue;
QOpenGLContext::currentContext()->format().stereo() ? stereoValue = "true" : stereoValue = "false";
stereoWarning->setText(stereoValue);
QOpenGLContext::currentContext()->format().stereo() == OpenFlipper::Options::glStereo() ?
QOpenGLContext::currentContext()->format().stereo() == OpenFlipper::Options::glStereoRequested() ?
stereoWarn.setColor(stereoWarning->foregroundRole(), Qt::black) :
stereoWarn.setColor(stereoWarning->foregroundRole(), Qt::red);
stereoWarning->setPalette(stereoWarn);
......@@ -650,6 +650,7 @@ void OptionsWidget::slotApply() {
OpenFlipperSettings().setValue("Core/OpenGL/Samples",samples_spinBox->value());
OpenFlipper::Options::glVersion(VersionComboBox->currentData().value<QPair<int,int>>());
OpenFlipper::Options::coreProfile(profileComboBox->currentIndex() == 0);
OpenFlipper::Options::glStereo(stereoCheckBox->isChecked());
//Paths settings
OpenFlipperSettings().setValue("Core/File/MaxRecent",maxRecentBox->value() ) ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment