Skip to content

Commit

Permalink
safe unregister window from appmenu service
Browse files Browse the repository at this point in the history
  • Loading branch information
jonian committed Nov 29, 2018
1 parent bcf74b8 commit cbb3311
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gnomehud/utils/service.py
Expand Up @@ -22,7 +22,8 @@ def RegisterWindow(self, windowId, menuObjectPath, sender):
@dbus.service.method(BUS_NAME, in_signature='u')

def UnregisterWindow(self, windowId):
del self.window_dict[windowId]
if windowId in self.window_dict:
del self.window_dict[windowId]

@dbus.service.method(BUS_NAME, in_signature='u', out_signature='so')

Expand Down

0 comments on commit cbb3311

Please sign in to comment.