Skip Menu |

This queue is for tickets about the Tickit-Widget-Statusbar CPAN distribution.

Report information
The Basics
Id: 130012
Status: new
Priority: 0/
Queue: Tickit-Widget-Statusbar

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.004
Fixed in: (no value)



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 );
On Mon Jul 08 18:35:33 2019, PEVANS wrote: Show quoted text
> Patch attached.
And turned into https://github.com/team-at-cpan/Tickit-Widget-Statusbar/pull/1 -- Paul Evans