mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-24 04:28:58 +00:00
fix(@desktop/keycard): crash by just running "Setup a new Keycard with an existing account" flow and closing it
Fixes: #11346
This commit is contained in:
parent
db16c61cbe
commit
263ef86c31
ui/app
@ -94,22 +94,27 @@ SettingsContentBase {
|
||||
target: root.keycardStore.keycardModule
|
||||
|
||||
function onDisplayKeycardSharedModuleFlow() {
|
||||
Global.openPopup(keycardPopup);
|
||||
keycardPopup.active = true
|
||||
}
|
||||
function onDestroyKeycardSharedModuleFlow() {
|
||||
Global.closePopup();
|
||||
keycardPopup.active = false
|
||||
}
|
||||
function onSharedModuleBusy() {
|
||||
Global.openPopup(sharedModuleBusyPopupComponent)
|
||||
}
|
||||
}
|
||||
|
||||
Component {
|
||||
Loader {
|
||||
id: keycardPopup
|
||||
KeycardPopup {
|
||||
active: false
|
||||
sourceComponent: KeycardPopup {
|
||||
sharedKeycardModule: root.keycardStore.keycardModule.keycardSharedModule
|
||||
emojiPopup: root.emojiPopup
|
||||
}
|
||||
|
||||
onLoaded: {
|
||||
keycardPopup.item.open()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -72,11 +72,11 @@ Item {
|
||||
}
|
||||
|
||||
function onDisplayKeycardSharedModuleFlow() {
|
||||
Global.openPopup(keycardPopup);
|
||||
keycardPopup.active = true
|
||||
}
|
||||
|
||||
function onDestroyKeycardSharedModuleFlow() {
|
||||
Global.closePopup();
|
||||
keycardPopup.active = false
|
||||
}
|
||||
|
||||
function onMailserverWorking() {
|
||||
@ -1427,12 +1427,16 @@ Item {
|
||||
Global.settingsLoaded()
|
||||
}
|
||||
|
||||
Component {
|
||||
Loader {
|
||||
id: keycardPopup
|
||||
KeycardPopup {
|
||||
anchors.centerIn: parent
|
||||
active: false
|
||||
sourceComponent: KeycardPopup {
|
||||
sharedKeycardModule: appMain.rootStore.mainModuleInst.keycardSharedModule
|
||||
}
|
||||
|
||||
onLoaded: {
|
||||
keycardPopup.item.open()
|
||||
}
|
||||
}
|
||||
|
||||
DropAreaPanel {
|
||||
|
Loading…
x
Reference in New Issue
Block a user