[view.qt] more centralisation fixes

This commit is contained in:
Vinicius Moreira
2023-11-29 16:55:47 -03:00
parent 81a547f7ec
commit 4c91973028
2 changed files with 7 additions and 9 deletions

View File

@@ -288,13 +288,13 @@ class PreparePanel(QWidget, TaskManager):
self.resize(int(self.get_table_width() * 1.05), self.sizeHint().height())
def show(self):
super(PreparePanel, self).show()
self.prepare_thread.start()
screen_size = get_current_screen_geometry()
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)
super(PreparePanel, self).show()
def start(self, tasks: int):
self.started_at = time.time()