mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
[window] fix: not hiding unnecessary fields after a recent installation
This commit is contained in:
@@ -28,6 +28,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
- Runtimes update-checking for version 1.5.X
|
||||
- Snap:
|
||||
- retrieving installed applications information for Ubuntu based distros
|
||||
- minor UI fixes
|
||||
|
||||
### AppImage support
|
||||
- Search, install, uninstall, downgrade, launch and retrieve the applications history
|
||||
|
||||
@@ -450,6 +450,7 @@ class ManageWindow(QWidget):
|
||||
self.ref_bt_upgrade.setVisible(True)
|
||||
self.update_pkgs(res['installed'], as_installed=as_installed, types=res['types'])
|
||||
self.first_refresh = False
|
||||
self._hide_fields_after_recent_installation()
|
||||
|
||||
def uninstall_app(self, app: PackageView):
|
||||
pwd = None
|
||||
@@ -838,6 +839,14 @@ class ManageWindow(QWidget):
|
||||
if self.ref_bt_installed.isVisible():
|
||||
self.ref_bt_installed.setEnabled(True)
|
||||
|
||||
self._hide_fields_after_recent_installation()
|
||||
|
||||
def _hide_fields_after_recent_installation(self):
|
||||
if self.recent_installation:
|
||||
self.ref_combo_filter_type.setVisible(False)
|
||||
self.ref_combo_categories.setVisible(False)
|
||||
self.ref_input_name_filter.setVisible(False)
|
||||
|
||||
def downgrade(self, pkgv: PackageView):
|
||||
pwd = None
|
||||
requires_root = self.manager.requires_root('downgrade', pkgv.model)
|
||||
|
||||
Reference in New Issue
Block a user