161 |
161 |
162 menu_log=rumps.MenuItem("Show log", callback=lambda _: showlog()) |
162 menu_log=rumps.MenuItem("Show log", callback=lambda _: showlog()) |
163 menu.append(menu_log) |
163 menu.append(menu_log) |
164 |
164 |
165 if not settings['no_quit_menu_entry']: |
165 if not settings['no_quit_menu_entry']: |
166 menu_quit=rumps.MenuItem("Quit...", callback=self.my_quit) |
166 menu_quit=rumps.MenuItem("Quit...", callback=lambda _: self.quit()) |
167 menu.append(menu_quit) |
167 menu.append(menu_quit) |
168 |
168 |
169 return menu, state |
169 return menu, state |
170 |
170 |
171 def refresh_ui(self): |
171 def refresh_ui(self): |
196 msgid, errorlog['message']) |
196 msgid, errorlog['message']) |
197 |
197 |
198 notification_workaround(borgend.appname_stylised, |
198 notification_workaround(borgend.appname_stylised, |
199 msgid, errorlog['message']) |
199 msgid, errorlog['message']) |
200 |
200 |
201 def my_quit(self, _): |
201 def quit(self): |
202 logging.shutdown() |
202 logging.shutdown() |
203 rumps.quit_application() |
203 rumps.quit_application() |
204 |
204 |
205 def __menu_select_backup(self, sender, b): |
205 def __menu_select_backup(self, sender, b): |
206 #sender.state=not sender.state |
206 #sender.state=not sender.state |