Subject: | Checklists showing everything twice |
Date: | Mon, 25 Jan 2016 22:34:30 -0500 |
To: | bug-UI-Dialog [...] rt.cpan.org |
From: | Richard Morse <pukku [...] mac.com> |
Hi! Using UI::Dialog 1.12, Perl 5.18.4, and dialog 1.2-20150920 (from homebrew) on Mac OS X 10.10.5, I found that items in a checklist are shown twice. Here is an example program that illustrates the problem:
#!/usr/bin/env perl
use strict;
use warnings;
use UI::Dialog;
my $d = UI::Dialog->new();
my @items = $d->checklist(
'text' => 'Test:',
'list' => [
'a1' => [ 'a1', 0 ],
'a2' => [ 'a2', 0 ],
]
);
print join(", " => @items), "\n”;
When I run this program, I see a checklist which looks like this:
[ ] a1 a1
[ ] a2 a2
[ ] a1 a1
[ ] a2 a2
Further, if I select an item from both instances (ie, both a1s, etc.), it shows up in the returned array twice.
Thanks,
Ricky