File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -26,15 +26,13 @@ void Mouse::activate()
2626 ui->cursorSize ->setValue (getInt (" XCURSOR_SIZE" ));
2727
2828 /* Natural Scroll */
29- ui->naturalScroll ->addItem (" no" );
30- ui->naturalScroll ->addItem (" yes" );
31- ui->naturalScroll ->setCurrentIndex (getBool (" /labwc_config/libinput/device/naturalScroll" ));
29+ ui->naturalScroll ->setChecked (getBool (" /labwc_config/libinput/device/naturalScroll" ));
3230}
3331
3432void Mouse::onApply ()
3533{
3634 /* ~/.config/labwc/rc.xml */
37- setBoolfromString (" /labwc_config/libinput/device/naturalScroll" , TEXT ( ui->naturalScroll ));
35+ setBool (" /labwc_config/libinput/device/naturalScroll" , ui->naturalScroll -> isChecked ( ));
3836
3937 /* ~/.config/labwc/environment */
4038 environmentSet (" XCURSOR_THEME" , TEXT (ui->cursorTheme ));
Original file line number Diff line number Diff line change 5151 </widget >
5252 </item >
5353 <item row =" 2" column =" 1" >
54- <widget class =" QComboBox " name =" naturalScroll" />
54+ <widget class =" QCheckBox " name =" naturalScroll" />
5555 </item >
5656 </layout >
5757 </widget >
You can’t perform that action at this time.
0 commit comments