This commit is contained in:
gaelle.braud 2025-02-17 15:31:05 +01:00
parent c1f0cd381a
commit edaebf9042
2 changed files with 5 additions and 7 deletions

View file

@ -83,7 +83,7 @@ void AccountList::setSelf(QSharedPointer<AccountList> me) {
} else mModelConnection->invokeToCore([this]() { setDefaultAccount(nullptr); });
});
mModelConnection->makeConnectToModel(&CoreModel::accountRemoved, [this] { emit lUpdate(); });
mModelConnection->makeConnectToModel(&CoreModel::accountAdded, [this] { emit lUpdate(); });
mModelConnection->makeConnectToModel(&CoreModel::accountAdded, [this] { emit lUpdate(true); });
mModelConnection->makeConnectToModel(
&CoreModel::globalStateChanged,

View file

@ -123,10 +123,6 @@ AbstractWindow {
id: mainWindowStackView
anchors.fill: parent
initialItem: splashScreen
Component.onCompleted: {
clear()
push(splashScreen)
}
}
Component {
id: splashScreen
@ -158,7 +154,8 @@ AbstractWindow {
onGoBack: openMainPage()
onUseSIPButtonClicked: mainWindowStackView.push(sipLoginPage)
onGoToRegister: mainWindowStackView.replace(registerPage)
showBackButton: mainWindow.accountProxy?.haveAccount || false
showBackButton: false
StackView.onActivated: if (mainWindow.accountProxy?.haveAccount) showBackButton = true
}
}
Component {
@ -172,7 +169,8 @@ AbstractWindow {
mainWindowStackView.pop()
}
onGoToRegister: mainWindowStackView.replace(registerPage)
showBackButton: !SettingsCpp.assistantGoDirectlyToThirdPartySipAccountLogin || mainWindow.accountProxy?.haveAccount
showBackButton: false
StackView.onActivated: if (!SettingsCpp.assistantGoDirectlyToThirdPartySipAccountLogin || mainWindow.accountProxy?.haveAccount) showBackButton = true
}
}
Component {