From e6edda8dad85bba652fefb887dd433632020c595 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Thu, 28 Nov 2024 23:46:07 -0600 Subject: [PATCH] Latch page required logic at startup to ensure appropriate pages display --- scwx-qt/source/scwx/qt/ui/setup/setup_wizard.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scwx-qt/source/scwx/qt/ui/setup/setup_wizard.cpp b/scwx-qt/source/scwx/qt/ui/setup/setup_wizard.cpp index 92be250f..9b265bd4 100644 --- a/scwx-qt/source/scwx/qt/ui/setup/setup_wizard.cpp +++ b/scwx-qt/source/scwx/qt/ui/setup/setup_wizard.cpp @@ -22,6 +22,9 @@ class SetupWizard::Impl public: explicit Impl() = default; ~Impl() = default; + + bool mapProviderPageIsRequired_ {MapProviderPage::IsRequired()}; + bool audioCodecPageIsRequired_ {AudioCodecPage::IsRequired()}; }; SetupWizard::SetupWizard(QWidget* parent) : @@ -66,14 +69,14 @@ int SetupWizard::nextId() const { case static_cast(Page::MapProvider): case static_cast(Page::MapLayout): - if (MapProviderPage::IsRequired()) + if (p->mapProviderPageIsRequired_) { return nextId; } break; case static_cast(Page::AudioCodec): - if (AudioCodecPage::IsRequired()) + if (p->audioCodecPageIsRequired_) { return nextId; }