Skip to content

Commit

Permalink
fix #1993
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Aug 28, 2022
1 parent f600a85 commit b6a9908
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bottles/frontend/widgets/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ def __init__(self, library, uuid, entry, *args, **kwargs):
self.uuid = uuid
self.entry = entry
self.config = self.__get_config()
if self.config is None:
self.__remove_entry()
return

self.program = self.__get_program()
self.set_size_request(240, 420)

Expand Down Expand Up @@ -154,7 +158,7 @@ def set_watcher(result=False, error=False):
name=self.program["executable"]
)

def __remove_entry(self, widget):
def __remove_entry(self, *args):
self.library.remove_entry(self.uuid)

def __calculate_button_color(self, path):
Expand Down

0 comments on commit b6a9908

Please sign in to comment.