Fix sign out

This commit is contained in:
miruka 2019-12-16 04:10:23 -04:00
parent 5765638466
commit aad317126a

View File

@ -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 }) },
) )
} }
} }