From d8d603b73ca45c5e3a30ee45f4e8ac9d98734aff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Moreira?= Date: Thu, 9 Jan 2020 18:53:05 -0300 Subject: [PATCH] [ui] Only centralizing the panel for the first refresh --- CHANGELOG.md | 1 + bauh/view/qt/window.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9f1623a..f5fdb477 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### UI - Default **Type** icon removed from the Type filter to make the design more consistent with the Category filter. +- Only centralizing the panel for the first refresh ## [0.8.0] 2019-12-24 ### Features diff --git a/bauh/view/qt/window.py b/bauh/view/qt/window.py index 44058cf1..c0860394 100755 --- a/bauh/view/qt/window.py +++ b/bauh/view/qt/window.py @@ -843,7 +843,8 @@ class ManageWindow(QWidget): if self.ref_bt_upgrade.isVisible() and self.bt_upgrade.visibleRegion().isEmpty(): self.adjustSize() - qt_utils.centralize(self) + if self.first_refresh: + qt_utils.centralize(self) def update_selected(self): if self.pkgs: