From 7c576f81e2a06c6d2002348c5dfb7eeb7cf8ade5 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Wed, 30 Nov 2022 07:49:40 -0300 Subject: [PATCH] [view] fix: initialization dialog not being properly centralized --- bauh/view/qt/prepare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bauh/view/qt/prepare.py b/bauh/view/qt/prepare.py index f1b94fc6..03a907c0 100644 --- a/bauh/view/qt/prepare.py +++ b/bauh/view/qt/prepare.py @@ -289,11 +289,11 @@ class PreparePanel(QWidget, TaskManager): def show(self): super(PreparePanel, self).show() self.prepare_thread.start() - centralize(self) 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) def start(self, tasks: int): self.started_at = time.time()