134 cbm=lambda sender, _b=b: self.__menu_select_backup(sender, _b) |
135 cbm=lambda sender, _b=b: self.__menu_select_backup(sender, _b) |
135 item=rumps.MenuItem(title, callback=cbm) |
136 item=rumps.MenuItem(title, callback=cbm) |
136 menu.append(item) |
137 menu.append(item) |
137 state=combine_state(state, this_state) |
138 state=combine_state(state, this_state) |
138 |
139 |
139 menu_quit=rumps.MenuItem("Quit...", callback=self.my_quit) |
140 if not settings['no_quit_menu_entry']: |
140 menu.append(menu_quit) |
141 menu_quit=rumps.MenuItem("Quit...", callback=self.my_quit) |
|
142 menu.append(menu_quit) |
141 |
143 |
142 return menu, state |
144 return menu, state |
143 |
145 |
144 def refresh_ui(self): |
146 def refresh_ui(self): |
145 with self.lock: |
147 with self.lock: |