ui.py

changeset 46
ecb41072a1b7
parent 45
aa2a95dc6093
child 49
db33dfa64ad6
--- a/ui.py	Sun Jan 21 23:52:35 2018 +0000
+++ b/ui.py	Mon Jan 22 00:12:51 2018 +0000
@@ -163,7 +163,7 @@
         menu.append(menu_log)
 
         if not settings['no_quit_menu_entry']:
-            menu_quit=rumps.MenuItem("Quit...", callback=self.my_quit)
+            menu_quit=rumps.MenuItem("Quit...", callback=lambda _: self.quit())
             menu.append(menu_quit)
 
         return menu, state
@@ -198,7 +198,7 @@
             notification_workaround(borgend.appname_stylised,
                                     msgid, errorlog['message'])
 
-    def my_quit(self, _):
+    def quit(self):
         logging.shutdown()
         rumps.quit_application()
 

mercurial