fix third party sip back button visibility

This commit is contained in:
Gaelle Braud 2025-01-22 18:05:28 +01:00
parent 45b2a4f484
commit 2e08bfe507
2 changed files with 5 additions and 0 deletions

View file

@ -12,6 +12,7 @@ LoginLayout {
signal goBack()
signal goToRegister()
signal connectionSucceed()
property bool showBackButton: false
titleContent: [
RowLayout {
@ -20,6 +21,7 @@ LoginLayout {
spacing: 21 * DefaultStyle.dp
Button {
id: backButton
visible: mainItem.showBackButton
Layout.preferredHeight: 24 * DefaultStyle.dp
Layout.preferredWidth: 24 * DefaultStyle.dp
icon.source: AppIcons.leftArrow

View file

@ -169,6 +169,9 @@ AbstractWindow {
openMainPage()
proposeH264CodecsDownload()
}
StackView.onActivated:{
if (!SettingsCpp.assistantGoDirectlyToThirdPartySipAccountLogin || accountProxy?.haveAccount) showBackButton = true
}
}
}
Component {