fix: "natrual" option in mouse scroll direction not correctly checked.

This commit is contained in:
Roy Qu 2024-03-20 16:01:34 +08:00
parent 5003c412f7
commit 9964551ed6
1 changed files with 4 additions and 1 deletions

View File

@ -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());