mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -31,3 +31,5 @@ class PluginUpdaterAction(InterfaceAction):
|
||||
|
||||
d = PluginUpdaterDialog(self.gui, initial_filter=initial_filter)
|
||||
d.exec_()
|
||||
if d.do_restart:
|
||||
self.gui.quit(restart=True)
|
||||
|
@ -175,6 +175,8 @@ class UpdateMixin(object):
|
||||
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…
x
Reference in New Issue
Block a user