Skip to content

Commit

Permalink
Avoid crash on exit when no configuration is present.
Browse files Browse the repository at this point in the history
Specifically this is seen the first time the program
runs on a system.

tb2097#59
  • Loading branch information
skomra committed Jan 25, 2022
1 parent da8ca06 commit c2e2108
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wacom-gui/wacom-gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ def boxdelete(self, box):
break

def updateConfigs(self):
# if there is no config don't try to update the configs
if (self.config == None):
return
write = False
if not self.toolButtons.buttons[(0, 0)].isHidden():
pad = self.pad.get_config()
Expand Down

0 comments on commit c2e2108

Please sign in to comment.