wacom: Fix 1-button stylus' button mapping
Oopsie. We weren't setting the default value for the only button if you only had that button.
This commit is contained in:
parent
35bc7d4e58
commit
26901fda58
1 changed files with 1 additions and 1 deletions
|
@ -474,7 +474,7 @@ cc_wacom_stylus_page_new (GsdWacomStylus *stylus,
|
|||
|
||||
if (num_buttons == 2)
|
||||
set_button_mapping_from_gsettings (GTK_COMBO_BOX (WID ("combo-topbutton")), priv->stylus_settings, 3);
|
||||
if (num_buttons > 1)
|
||||
if (num_buttons >= 1)
|
||||
set_button_mapping_from_gsettings (GTK_COMBO_BOX (WID ("combo-bottombutton")), priv->stylus_settings, 2);
|
||||
set_feel_from_gsettings (GTK_ADJUSTMENT (WID ("adjustment-tip-feel")), priv->stylus_settings);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue