From 6433d3159e8f4a08a0e526d712d74d139d5a820d Mon Sep 17 00:00:00 2001 From: zhexu14 <64713351+zhexu14@users.noreply.github.com> Date: Sat, 4 May 2024 16:10:20 +1000 Subject: [PATCH] Make window size of NGW consistent so position does not move around (#3386) --- qt_ui/windows/newgame/QNewGameWizard.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qt_ui/windows/newgame/QNewGameWizard.py b/qt_ui/windows/newgame/QNewGameWizard.py index 2827eaf4..ba7f46e7 100644 --- a/qt_ui/windows/newgame/QNewGameWizard.py +++ b/qt_ui/windows/newgame/QNewGameWizard.py @@ -142,6 +142,10 @@ class NewGameWizard(QtWidgets.QWizard): self.setWindowTitle("New Game") + # Resize wizard to the size of the largest page to keep size and position + # consistent. + self.resize(self.theater_page.sizeHint()) + def accept(self): logging.info("New Game Wizard accept") logging.info("======================")