fix third party sip back button visibility
This commit is contained in:
parent
45b2a4f484
commit
2e08bfe507
2 changed files with 5 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ LoginLayout {
|
||||||
signal goBack()
|
signal goBack()
|
||||||
signal goToRegister()
|
signal goToRegister()
|
||||||
signal connectionSucceed()
|
signal connectionSucceed()
|
||||||
|
property bool showBackButton: false
|
||||||
|
|
||||||
titleContent: [
|
titleContent: [
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
|
@ -20,6 +21,7 @@ LoginLayout {
|
||||||
spacing: 21 * DefaultStyle.dp
|
spacing: 21 * DefaultStyle.dp
|
||||||
Button {
|
Button {
|
||||||
id: backButton
|
id: backButton
|
||||||
|
visible: mainItem.showBackButton
|
||||||
Layout.preferredHeight: 24 * DefaultStyle.dp
|
Layout.preferredHeight: 24 * DefaultStyle.dp
|
||||||
Layout.preferredWidth: 24 * DefaultStyle.dp
|
Layout.preferredWidth: 24 * DefaultStyle.dp
|
||||||
icon.source: AppIcons.leftArrow
|
icon.source: AppIcons.leftArrow
|
||||||
|
|
|
||||||
|
|
@ -169,6 +169,9 @@ AbstractWindow {
|
||||||
openMainPage()
|
openMainPage()
|
||||||
proposeH264CodecsDownload()
|
proposeH264CodecsDownload()
|
||||||
}
|
}
|
||||||
|
StackView.onActivated:{
|
||||||
|
if (!SettingsCpp.assistantGoDirectlyToThirdPartySipAccountLogin || accountProxy?.haveAccount) showBackButton = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Component {
|
Component {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue