mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-25 09:14:13 +01:00
When plugin updater dialog closes, update the icon
This commit is contained in:
parent
ff73b5a26c
commit
aa2effb67c
1 changed files with 2 additions and 3 deletions
|
|
@ -12,7 +12,7 @@
|
|||
from PyQt4.Qt import (Qt, QUrl, QFrame, QVBoxLayout, QLabel, QBrush, QTextEdit,
|
||||
QComboBox, QAbstractItemView, QHBoxLayout, QDialogButtonBox,
|
||||
QAbstractTableModel, QVariant, QTableView, QModelIndex,
|
||||
QSortFilterProxyModel, pyqtSignal, QAction, QIcon, QDialog,
|
||||
QSortFilterProxyModel, QAction, QIcon, QDialog,
|
||||
QFont, QPixmap, QSize)
|
||||
from calibre import browser, prints
|
||||
from calibre.constants import numeric_version, iswindows, isosx, DEBUG
|
||||
|
|
@ -447,7 +447,6 @@ def _get_status_tooltip(self, display_plugin):
|
|||
|
||||
class PluginUpdaterDialog(SizePersistedDialog):
|
||||
|
||||
update_found = pyqtSignal(object)
|
||||
initial_extra_size = QSize(350, 100)
|
||||
|
||||
def __init__(self, gui, initial_filter=FILTER_UPDATE_AVAILABLE):
|
||||
|
|
@ -587,7 +586,7 @@ def _close_clicked(self):
|
|||
# Force our toolbar/action to be updated based on uninstalled updates
|
||||
if self.model:
|
||||
update_plugins = filter(filter_upgradeable_plugins, self.model.display_plugins)
|
||||
self.update_found.emit(update_plugins)
|
||||
self.gui.plugin_update_found(len(update_plugins))
|
||||
self.reject()
|
||||
|
||||
def _plugin_current_changed(self, current, previous):
|
||||
|
|
|
|||
Loading…
Reference in a new issue