mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 15:50:05 +00:00
Latch page required logic at startup to ensure appropriate pages display
This commit is contained in:
parent
f2e1db491f
commit
ed353248e0
1 changed files with 5 additions and 2 deletions
|
|
@ -22,6 +22,9 @@ class SetupWizard::Impl
|
||||||
public:
|
public:
|
||||||
explicit Impl() = default;
|
explicit Impl() = default;
|
||||||
~Impl() = default;
|
~Impl() = default;
|
||||||
|
|
||||||
|
bool mapProviderPageIsRequired_ {MapProviderPage::IsRequired()};
|
||||||
|
bool audioCodecPageIsRequired_ {AudioCodecPage::IsRequired()};
|
||||||
};
|
};
|
||||||
|
|
||||||
SetupWizard::SetupWizard(QWidget* parent) :
|
SetupWizard::SetupWizard(QWidget* parent) :
|
||||||
|
|
@ -66,14 +69,14 @@ int SetupWizard::nextId() const
|
||||||
{
|
{
|
||||||
case static_cast<int>(Page::MapProvider):
|
case static_cast<int>(Page::MapProvider):
|
||||||
case static_cast<int>(Page::MapLayout):
|
case static_cast<int>(Page::MapLayout):
|
||||||
if (MapProviderPage::IsRequired())
|
if (p->mapProviderPageIsRequired_)
|
||||||
{
|
{
|
||||||
return nextId;
|
return nextId;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case static_cast<int>(Page::AudioCodec):
|
case static_cast<int>(Page::AudioCodec):
|
||||||
if (AudioCodecPage::IsRequired())
|
if (p->audioCodecPageIsRequired_)
|
||||||
{
|
{
|
||||||
return nextId;
|
return nextId;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue