diff --git a/CHANGELOG.md b/CHANGELOG.md index 436f77f0..11ae7139 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Fixes - AppImage - upgrade fails when the package was initially imported, but later added to bauh's database [#321](https://github.com/vinifmor/bauh/issues/321) +- UI + - trying to fix the wrong widgets centralisation issue (random) ### Contributions - German translations by [Mape6](https://github.com/Mape6) diff --git a/bauh/view/qt/prepare.py b/bauh/view/qt/prepare.py index 89545431..ecf0d37f 100644 --- a/bauh/view/qt/prepare.py +++ b/bauh/view/qt/prepare.py @@ -253,6 +253,7 @@ class PreparePanel(QWidget, TaskManager): self.bt_bar.add_widget(self.bt_skip) self.layout().addWidget(self.bt_bar) + centralize(self) def hide_output(self): self.current_output_task = None @@ -293,7 +294,7 @@ class PreparePanel(QWidget, TaskManager): self.setMinimumWidth(int(screen_size.width() * 0.5)) self.setMinimumHeight(int(screen_size.height() * 0.35)) self.setMaximumHeight(int(screen_size.height() * 0.95)) - centralize(self, align_top_left=False) + centralize(self) def start(self, tasks: int): self.started_at = time.time() diff --git a/bauh/view/qt/settings.py b/bauh/view/qt/settings.py index ae732c7c..8a70adb2 100644 --- a/bauh/view/qt/settings.py +++ b/bauh/view/qt/settings.py @@ -79,6 +79,7 @@ class SettingsWindow(QWidget): self.thread_reload_panel = ReloadManagePanel(manager=manager) self.thread_reload_panel.signal_finished.connect(self._reload_manage_panel) + centralize(self) def show(self): super(SettingsWindow, self).show() diff --git a/bauh/view/qt/window.py b/bauh/view/qt/window.py index 7358c5ff..18be46d9 100755 --- a/bauh/view/qt/window.py +++ b/bauh/view/qt/window.py @@ -459,6 +459,8 @@ class ManageWindow(QWidget): self._screen_geometry: Optional[QRect] = None self.searched_term: Optional[str] = None # last searched term + qt_utils.centralize(self) + def _register_groups(self): common_filters = (CHECK_APPS, CHECK_UPDATES, COMBO_CATEGORIES, COMBO_TYPES, INP_NAME) self.comp_manager.register_group(GROUP_FILTERS, False, CHECK_INSTALLED, *common_filters)