Skip to content

Commit

Permalink
Clean up unused return value
Browse files Browse the repository at this point in the history
  • Loading branch information
ldrahnik committed Jul 11, 2023
1 parent d3b543e commit c2a0354
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions asus_touchpad.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,9 @@ def gsettingsSet(path, name, value):

log.debug(cmd)
subprocess.check_output(cmd)
return True
except:
log.exception('gsettings set failed')
gsettings_is_here=False
return False


def gsettingsGet(path, name):
Expand All @@ -239,7 +237,7 @@ def gsettingsGetTouchpadSendEvents():


def gsettingsSetTouchpadTapToClick(value):
return gsettingsSet('org.gnome.desktop.peripherals.touchpad', 'tap-to-click', str(bool(value)).lower())
gsettingsSet('org.gnome.desktop.peripherals.touchpad', 'tap-to-click', str(bool(value)).lower())


# Figure out devices from devices file
Expand Down Expand Up @@ -638,7 +636,6 @@ def set_touchpad_prop_tap_to_click(value):

if getting_device_via_xinput_status_failure_count > getting_device_via_xinput_status_max_failure_count:
log.debug('Setting libinput Tapping EnabledDevice via xinput failed more then: \"%s\" times so is not try anymore', getting_device_via_xinput_status_max_failure_count)
return True

try:
cmd = ["xinput", "set-prop", touchpad_name, 'libinput Tapping Enabled', str(value)]
Expand Down

0 comments on commit c2a0354

Please sign in to comment.