fix(ProfileContextMenu): stop leaking memory
- got removed in a recent refactoring, restore it - when a context menu component is opened via `Global.openMenu()`, it has to be destroyed manually
This commit is contained in:
parent
2c46764829
commit
277f408e0c
|
@ -205,6 +205,7 @@ Item {
|
|||
onRemoveFromGroup: {
|
||||
root.store.removeMemberFromGroupChat(profileContextMenu.publicKey)
|
||||
}
|
||||
onClosed: destroy()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -371,6 +371,7 @@ Item {
|
|||
const contactDetails = memberContextMenuView.publicKey === "" ? {} : Utils.getContactDetailsAsJson(memberContextMenuView.publicKey, true, true)
|
||||
Global.blockContactRequested(memberContextMenuView.publicKey, contactDetails)
|
||||
}
|
||||
onClosed: destroy()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -89,6 +89,7 @@ SettingsContentBase {
|
|||
const contactDetails = contactContextMenu.publicKey === "" ? {} : Utils.getContactDetailsAsJson(contactContextMenu.publicKey, true, true)
|
||||
Global.blockContactRequested(contactContextMenu.publicKey, contactDetails)
|
||||
}
|
||||
onClosed: destroy()
|
||||
}
|
||||
}
|
||||
SearchBox {
|
||||
|
|
|
@ -1227,6 +1227,10 @@ Loader {
|
|||
root.store.removeMemberFromGroupChat(profileContextMenu.publicKey)
|
||||
}
|
||||
onOpened: root.setMessageActive(root.messageId, true)
|
||||
onClosed: {
|
||||
root.setMessageActive(root.messageId, false)
|
||||
destroy()
|
||||
}
|
||||
}
|
||||
}
|
||||
Component {
|
||||
|
|
Loading…
Reference in New Issue