mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
[view.qt] fix: wrong widgets centralisation issue
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user