From 0e8902942f1e6f84a817e445e729fe168a536358 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Wed, 16 Oct 2019 14:20:13 -0300 Subject: [PATCH] [window] fix: not hiding unnecessary fields after a recent installation --- CHANGELOG.md | 1 + bauh/view/qt/window.py | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index afae1a65..2bde2716 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/bauh/view/qt/window.py b/bauh/view/qt/window.py index 64641c26..1b906b33 100755 --- a/bauh/view/qt/window.py +++ b/bauh/view/qt/window.py @@ -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)