From 9964551ed612e8bed1486ee109239e8f1d1e2ca0 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Wed, 20 Mar 2024 16:01:34 +0800 Subject: [PATCH] fix: "natrual" option in mouse scroll direction not correctly checked. --- RedPandaIDE/settingsdialog/editorgeneralwidget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/RedPandaIDE/settingsdialog/editorgeneralwidget.cpp b/RedPandaIDE/settingsdialog/editorgeneralwidget.cpp index 36d04c72..e5bd41c8 100644 --- a/RedPandaIDE/settingsdialog/editorgeneralwidget.cpp +++ b/RedPandaIDE/settingsdialog/editorgeneralwidget.cpp @@ -79,7 +79,10 @@ void EditorGeneralWidget::doLoad() ui->chkScrollByOneLess->setChecked(pSettings->editor().scrollByOneLess()); ui->spinMouseWheelScrollSpeed->setValue(pSettings->editor().mouseWheelScrollSpeed()); ui->spinMouseSelectionScrollSpeed->setValue(pSettings->editor().mouseSelectionScrollSpeed()); - ui->rbInvertScroll->setChecked(pSettings->editor().invertMouseScroll()); + if (pSettings->editor().invertMouseScroll()) + ui->rbInvertScroll->setChecked(true); + else + ui->rbNaturalScroll->setChecked(true); //right margin line; ui->grpRightEdge->setChecked(pSettings->editor().showRightEdgeLine());