mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 03:53:23 +02:00
wizardview: temporary fix for page arrangement when deleting the last account
When deleting the last account, wizard view's page can be incorrect if the user has created an account before. Gitlab: #43 Change-Id: I82055456a9df608d88b81fc51049b0623c6d0a35
This commit is contained in:
parent
b07f7afe92
commit
a70e13082f
2 changed files with 19 additions and 16 deletions
|
@ -65,6 +65,7 @@ ApplicationWindow {
|
|||
|
||||
function onNoAccountIsAvailable() {
|
||||
mainViewLoader.setSource("")
|
||||
wizardViewForApplicationStart.changePageQML(0)
|
||||
wizardView.show()
|
||||
}
|
||||
}
|
||||
|
@ -79,6 +80,8 @@ ApplicationWindow {
|
|||
minimumHeight: 600
|
||||
|
||||
WizardView {
|
||||
id: wizardViewForApplicationStart
|
||||
|
||||
anchors.fill: parent
|
||||
onNeedToShowMainViewWindow: {
|
||||
mainViewLoader.newAddedAccountIndex = accountIndex
|
||||
|
|
|
@ -227,27 +227,27 @@ Window {
|
|||
}
|
||||
|
||||
WizardView {
|
||||
id: wizardView
|
||||
id: wizardView
|
||||
|
||||
anchors.fill: parent
|
||||
anchors.fill: parent
|
||||
|
||||
onNeedToShowMainViewWindow: {
|
||||
mainViewLoader.newAddedAccountIndex = accountIndex
|
||||
if (mainViewLoader.source.toString() !== "qrc:/src/mainview/MainView.qml") {
|
||||
mainViewLoader.loaded.disconnect(slotNewAccountAdded)
|
||||
mainViewLoader.loaded.connect(slotNewAccountAdded)
|
||||
mainViewLoader.setSource("qrc:/src/mainview/MainView.qml")
|
||||
} else {
|
||||
slotNewAccountAdded()
|
||||
}
|
||||
mainViewStackLayout.currentIndex = 0
|
||||
}
|
||||
|
||||
onWizardViewIsClosed: {
|
||||
mainViewStackLayout.currentIndex = 0
|
||||
onNeedToShowMainViewWindow: {
|
||||
mainViewLoader.newAddedAccountIndex = accountIndex
|
||||
if (mainViewLoader.source.toString() !== "qrc:/src/mainview/MainView.qml") {
|
||||
mainViewLoader.loaded.disconnect(slotNewAccountAdded)
|
||||
mainViewLoader.loaded.connect(slotNewAccountAdded)
|
||||
mainViewLoader.setSource("qrc:/src/mainview/MainView.qml")
|
||||
} else {
|
||||
slotNewAccountAdded()
|
||||
}
|
||||
mainViewStackLayout.currentIndex = 0
|
||||
}
|
||||
|
||||
onWizardViewIsClosed: {
|
||||
mainViewStackLayout.currentIndex = 0
|
||||
}
|
||||
}
|
||||
|
||||
StackLayout {
|
||||
id: mainViewStackLayout
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue