fix(lists): destruction

fix: #53
This commit is contained in:
Evangelos Paterakis 2023-02-09 01:13:31 +02:00
parent f8fde508aa
commit 8a65661700
No known key found for this signature in database
GPG Key ID: FE5185F095BFC8C9
1 changed files with 10 additions and 4 deletions

View File

@ -304,15 +304,17 @@ public class Tooth.Views.Lists : Views.Timeline {
buffer.set_text("".data);
}
Entry child_entry = new Entry() {
input_purpose = InputPurpose.FREE_FORM,
placeholder_text = _("New list title")
};
construct {
var add_action_bar = new ActionBar ();
add_action_bar.add_css_class("ttl-box-no-shadow");
var child_box = new Box(Orientation.HORIZONTAL, 6);
var child_entry = new Entry() {
input_purpose = InputPurpose.FREE_FORM,
placeholder_text = _("New list title")
};
var add_button = new Button.with_label (_("Add list")) {
sensitive = false
};
@ -335,6 +337,10 @@ public class Tooth.Views.Lists : Views.Timeline {
add_action_bar.set_center_widget(child_box);
insert_child_after (add_action_bar, header);
}
~Lists () {
message("Destroying Lists view");
}
public override void on_request_finish () {
on_content_changed ();