mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-29 17:36:20 +01:00
Oops forgot to implement the restart button for plugin updates and the plugin update action
This commit is contained in:
parent
42cbbc8284
commit
afacc1be29
2 changed files with 4 additions and 0 deletions
|
|
@ -31,3 +31,5 @@ def check_for_plugin_updates(self):
|
|||
|
||||
d = PluginUpdaterDialog(self.gui, initial_filter=initial_filter)
|
||||
d.exec_()
|
||||
if d.do_restart:
|
||||
self.gui.quit(restart=True)
|
||||
|
|
|
|||
|
|
@ -175,6 +175,8 @@ def update_found(self, version, force=False, no_show_popup=False):
|
|||
d = PluginUpdaterDialog(self,
|
||||
initial_filter=FILTER_UPDATE_AVAILABLE)
|
||||
d.exec_()
|
||||
if d.do_restart:
|
||||
self.quit(restart=True)
|
||||
|
||||
def plugin_update_found(self, number_of_updates):
|
||||
# Change the plugin icon to indicate there are updates available
|
||||
|
|
|
|||
Loading…
Reference in a new issue