mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
LibGUI: Allow a wizard page to return null as its next page
This commit is contained in:
parent
b072cb725f
commit
714ce4741d
1 changed files with 5 additions and 1 deletions
|
@ -79,7 +79,11 @@ WizardDialog::WizardDialog(Window* parent_window)
|
|||
if (!current_page().can_go_next())
|
||||
return done(ExecOK);
|
||||
|
||||
push_page(*current_page().next_page());
|
||||
auto next_page = current_page().next_page();
|
||||
if (!next_page)
|
||||
return done(ExecOK);
|
||||
|
||||
push_page(*next_page);
|
||||
};
|
||||
|
||||
auto& button_spacer = nav_container_widget.add<Widget>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue