mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
fix #LINQT-1493 do not display authentication popup in login page
This commit is contained in:
parent
55f1d9c17e
commit
79aedce881
1 changed files with 5 additions and 0 deletions
|
|
@ -78,6 +78,9 @@ AbstractWindow {
|
|||
|
||||
function reauthenticateAccount(identity, domain, callback){
|
||||
if (authenticationPopupOpened) return
|
||||
if (mainWindowStackView.currentItem.objectName === "loginPage"
|
||||
|| mainWindowStackView.currentItem.objectName === "sipLoginPage")
|
||||
return
|
||||
console.log("Showing authentication dialog")
|
||||
var popup = authenticationPopupComp.createObject(mainWindow, {"identity": identity, "domain": domain, "callback":callback}) // Callback ownership is not passed
|
||||
popup.open()
|
||||
|
|
@ -132,6 +135,7 @@ AbstractWindow {
|
|||
Component {
|
||||
id: loginPage
|
||||
LoginPage {
|
||||
objectName: "loginPage"
|
||||
showBackButton: accountProxy?.haveAccount || false
|
||||
onGoBack: openMainPage()
|
||||
onUseSIPButtonClicked: mainWindowStackView.push(sipLoginPage)
|
||||
|
|
@ -145,6 +149,7 @@ AbstractWindow {
|
|||
Component {
|
||||
id: sipLoginPage
|
||||
SIPLoginPage {
|
||||
objectName: "sipLoginPage"
|
||||
onGoBack: {
|
||||
if(SettingsCpp.assistantGoDirectlyToThirdPartySipAccountLogin){
|
||||
openMainPage()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue