mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
[view] fix: initialization dialog not being properly centralized
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user