[window] fix: not hiding unnecessary fields after a recent installation

This commit is contained in:
Vinicius Moreira
2019-10-16 14:20:13 -03:00
parent 5ac902df86
commit 0e8902942f
2 changed files with 10 additions and 0 deletions

View File

@@ -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

View File

@@ -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)