Use replace instead of pop/push in order to destroy the Welcome page.

The first pop will do nothing as the welcome page is the initial item.
This commit is contained in:
Julien Wadel 2023-10-25 10:57:57 +02:00
parent 536123992c
commit 154a322dd3

View file

@ -20,8 +20,7 @@ Window {
id: welcomePage id: welcomePage
WelcomePage { WelcomePage {
onStartButtonPressed: { onStartButtonPressed: {
mainWindowStackView.pop(welcomePage) mainWindowStackView.replace(loginPage)// Replacing the first item will destroy the old.
mainWindowStackView.push(loginPage)
} }
} }
} }