mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 03:34:15 +02:00
improving installed Flatpaks reading time
This commit is contained in:
@@ -295,7 +295,7 @@ class AppsTable(QTableWidget):
|
||||
label_version.setStyleSheet("color: #20A435; font-weight: bold")
|
||||
tooltip = self.i18n['version.installed_outdated']
|
||||
|
||||
if pkg.model.installed and pkg.model.version and pkg.model.latest_version and pkg.model.version < pkg.model.latest_version:
|
||||
if pkg.model.installed and pkg.model.update and pkg.model.version and pkg.model.latest_version and pkg.model.version < pkg.model.latest_version:
|
||||
tooltip = '{}. {}: {}'.format(tooltip, self.i18n['version.latest'], pkg.model.latest_version)
|
||||
label_version.setText(label_version.text() + ' > {}'.format(pkg.model.latest_version))
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ class UpdateSelectedApps(AsyncAction):
|
||||
if self.apps_to_update:
|
||||
updated, updated_types = 0, set()
|
||||
for app in self.apps_to_update:
|
||||
self.change_status('{} {}...'.format(self.locale_keys['manage_window.status.upgrading'], app.model.name))
|
||||
self.change_status('{} {} {}...'.format(self.locale_keys['manage_window.status.upgrading'], app.model.name, app.model.version))
|
||||
success = bool(self.manager.update(app.model, self.root_password, self))
|
||||
|
||||
if not success:
|
||||
@@ -405,7 +405,7 @@ class RunApp(AsyncAction):
|
||||
|
||||
if self.app:
|
||||
try:
|
||||
time.sleep(0.5)
|
||||
time.sleep(0.25)
|
||||
subprocess.Popen(self.app.model.get_command().split(' '))
|
||||
self.notify_finished(True)
|
||||
except:
|
||||
|
||||
@@ -231,6 +231,7 @@ class ManageWindow(QWidget):
|
||||
self.toolbar_bottom.addWidget(new_spacer())
|
||||
|
||||
self.progress_bar = QProgressBar()
|
||||
self.progress_bar.setMaximumHeight(7)
|
||||
self.progress_bar.setTextVisible(False)
|
||||
self.ref_progress_bar = self.toolbar_bottom.addWidget(self.progress_bar)
|
||||
|
||||
@@ -263,7 +264,7 @@ class ManageWindow(QWidget):
|
||||
self.combo_styles.show_panel_after_restart = bool(tray_icon)
|
||||
|
||||
def _update_process_progress(self, val: int):
|
||||
self.progress_bar.setTextVisible(True)
|
||||
# self.progress_bar.setTextVisible(True)
|
||||
self.thread_animate_progress.set_progress(val)
|
||||
|
||||
def apply_filters_async(self):
|
||||
|
||||
Reference in New Issue
Block a user