misc: set UI on wizard exit

- switch to welcome view or call view when exiting wizard

Gitlab: #105
Change-Id: Ib6c334b7297b17d92e9292ffb454f6430b3e7034
This commit is contained in:
ababi
2020-09-25 12:06:26 +02:00
committed by Ming Rui Zhang
parent 3af4a8384d
commit d056f56c5e

View File

@@ -366,10 +366,26 @@ Window {
onNeedToShowMainViewWindow: {
mainViewStackLayout.currentIndex = 0
// TODO: to be simplified in the refactor
if (!inSettingsView) {
if (currentAccountIsCalling()) {
setCallStackView()
} else {
showWelcomeView()
}
}
}
onWizardViewIsClosed: {
mainViewStackLayout.currentIndex = 0
// TODO: to be simplified in the refactor
if (!inSettingsView) {
if (currentAccountIsCalling()) {
setCallStackView()
} else {
showWelcomeView()
}
}
}
}
}