fix: box and stack children setter

This commit is contained in:
Aylur
2024-09-12 11:35:59 +00:00
parent ef46b758cd
commit e1fa0fca69
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -42,9 +42,9 @@ public class Box : Gtk.Box {
private void _set_children(List<weak Gtk.Widget> arr) {
foreach(var child in get_children()) {
if (no_implicit_destroy)
remove(child);
else if (arr.find(child).length() == 0)
remove(child);
if (!no_implicit_destroy && arr.find(child).length() == 0)
child.destroy();
}
+3 -3
View File
@@ -16,9 +16,9 @@ public class Astal.Stack : Gtk.Stack {
private void _set_children(List<weak Gtk.Widget> arr) {
foreach(var child in get_children()) {
if (no_implicit_destroy)
remove(child);
else if (arr.find(child).length() == 0)
remove(child);
if (!no_implicit_destroy && arr.find(child).length() == 0)
child.destroy();
}