Fix sign out
This commit is contained in:
parent
5765638466
commit
aad317126a
|
@ -23,7 +23,6 @@ HTileDelegate {
|
||||||
Behavior on opacity { HOpacityAnimator {} }
|
Behavior on opacity { HOpacityAnimator {} }
|
||||||
|
|
||||||
|
|
||||||
property bool disconnecting: false
|
|
||||||
readonly property bool forceExpand: Boolean(mainPaneList.filter)
|
readonly property bool forceExpand: Boolean(mainPaneList.filter)
|
||||||
|
|
||||||
// Hide harmless error when a filter matches nothing
|
// Hide harmless error when a filter matches nothing
|
||||||
|
@ -32,11 +31,9 @@ HTileDelegate {
|
||||||
} catch (err) {}
|
} catch (err) {}
|
||||||
|
|
||||||
|
|
||||||
onActivated: if (! disconnecting) {
|
onActivated: pageLoader.showPage(
|
||||||
pageLoader.showPage(
|
|
||||||
"AccountSettings/AccountSettings", { "userId": model.data.user_id }
|
"AccountSettings/AccountSettings", { "userId": model.data.user_id }
|
||||||
)
|
)
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function toggleCollapse() {
|
function toggleCollapse() {
|
||||||
|
@ -120,7 +117,6 @@ HTileDelegate {
|
||||||
"Popups/SignOutPopup.qml",
|
"Popups/SignOutPopup.qml",
|
||||||
window,
|
window,
|
||||||
{ "userId": model.data.user_id },
|
{ "userId": model.data.user_id },
|
||||||
popup => { popup.ok.connect(() => { disconnecting = true }) },
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user