Subject: | Status widgets don't display |
On recent(ish?) versions of Tickit you now need to explicitly ->close a window to remove it. When setting child widget windows, it is therefore required to ->close the previous window if one existed.
Patch attached.
--
Paul Evans
Subject: | close-old-windows.patch |
=== modified file 'lib/Tickit/Widget/Statusbar.pm'
--- lib/Tickit/Widget/Statusbar.pm 2019-07-08 21:46:59 +0000
+++ lib/Tickit/Widget/Statusbar.pm 2019-07-08 22:29:32 +0000
@@ -116,6 +116,9 @@
return unless my $win = $self->window;
my $x = $win->cols;
for my $child (reverse $self->children) {
+ my $childwin = $child->window;
+ $childwin->close if $childwin;
+
my $sub = $win->make_sub(
0, $x - $child->cols, 1, $child->cols
);