fix: debug page resetting onboarding state
This commit is contained in:
parent
7780a8900c
commit
3dddbb433e
1 changed files with 3 additions and 2 deletions
|
|
@ -1212,8 +1212,9 @@ fn action_row(dispatch: &Actions, buttons: Vec<(&'static str, IconType)>) -> Ele
|
|||
.text(text);
|
||||
|
||||
if text == "Open Onboarding" {
|
||||
dispatch.reset_onboarding();
|
||||
button = button.on_press(|_| {
|
||||
let dispatch = dispatch.clone();
|
||||
button = button.on_press(move |_| {
|
||||
dispatch.reset_onboarding();
|
||||
let _ = RouterContext::get().replace(Route::OnboardingWelcome {});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue