From d056f56c5e6c386dd43227737cd1bc64bc489fad Mon Sep 17 00:00:00 2001 From: ababi <albert.babi@savoirfairelinux.com> Date: Fri, 25 Sep 2020 12:06:26 +0200 Subject: [PATCH] misc: set UI on wizard exit - switch to welcome view or call view when exiting wizard Gitlab: #105 Change-Id: Ib6c334b7297b17d92e9292ffb454f6430b3e7034 --- src/mainview/MainView.qml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/mainview/MainView.qml b/src/mainview/MainView.qml index f66109394..d81655ec7 100644 --- a/src/mainview/MainView.qml +++ b/src/mainview/MainView.qml @@ -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() + } + } } } } -- GitLab