fix: properly dispose PopoverMenus
This commit is contained in:
parent
1b9e9aef08
commit
a43ce8d6ba
|
@ -16,7 +16,6 @@ public class Tooth.Widgets.Attachment.Item : Adw.Bin {
|
|||
protected Button button;
|
||||
protected Label badge;
|
||||
|
||||
|
||||
private void copy_url () {
|
||||
Host.copy (entity.url);
|
||||
}
|
||||
|
@ -95,6 +94,10 @@ public class Tooth.Widgets.Attachment.Item : Adw.Bin {
|
|||
child = overlay;
|
||||
child.add_css_class ("attachment");
|
||||
}
|
||||
~Item () {
|
||||
message ("Destroying Attachment.Item widget");
|
||||
context_menu.unparent ();
|
||||
}
|
||||
|
||||
protected void create_context_menu() {
|
||||
var menu_model = new GLib.Menu ();
|
||||
|
|
|
@ -173,6 +173,7 @@ public class Tooth.Widgets.Status : ListBoxRow {
|
|||
}
|
||||
~Status () {
|
||||
message ("Destroying Status widget");
|
||||
context_menu.unparent ();
|
||||
}
|
||||
|
||||
protected void create_context_menu() {
|
||||
|
|
Loading…
Reference in New Issue