mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 17:34:14 +02:00
showing updating app name
This commit is contained in:
@@ -54,6 +54,7 @@ class AsyncAction(QThread):
|
||||
class UpdateSelectedApps(AsyncAction):
|
||||
|
||||
signal_finished = pyqtSignal(bool, int)
|
||||
signal_status = pyqtSignal(str)
|
||||
signal_output = pyqtSignal(str)
|
||||
|
||||
def __init__(self, manager: ApplicationManager, apps_to_update: List[ApplicationView] = None):
|
||||
@@ -66,7 +67,7 @@ class UpdateSelectedApps(AsyncAction):
|
||||
success = False
|
||||
|
||||
for app in self.apps_to_update:
|
||||
|
||||
self.signal_status.emit(app.model.base_data.name)
|
||||
process = self.manager.update_and_stream(app.model)
|
||||
success = self.notify_subproc_outputs(process, self.signal_output)
|
||||
|
||||
|
||||
@@ -138,6 +138,7 @@ class ManageWindow(QWidget):
|
||||
self.thread_update = UpdateSelectedApps(self.manager)
|
||||
self.thread_update.signal_output.connect(self._update_action_output)
|
||||
self.thread_update.signal_finished.connect(self._finish_update_selected)
|
||||
self.thread_update.signal_status.connect(self._change_updating_app_status)
|
||||
|
||||
self.thread_refresh = RefreshApps(self.manager)
|
||||
self.thread_refresh.signal.connect(self._finish_refresh_apps)
|
||||
@@ -344,6 +345,9 @@ class ManageWindow(QWidget):
|
||||
self.change_update_state()
|
||||
self.checkbox_console.setChecked(True)
|
||||
|
||||
def _change_updating_app_status(self, app_name: str):
|
||||
self.label_status.setText('{} {}...'.format(self.locale_keys['manage_window.status.upgrading'], app_name))
|
||||
|
||||
def apply_filters(self):
|
||||
if self.apps:
|
||||
visible_apps = len(self.apps)
|
||||
|
||||
Reference in New Issue
Block a user