summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/network/netcenter.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm
index 66f03f8..148a409 100755
--- a/lib/network/netcenter.pm
+++ b/lib/network/netcenter.pm
@@ -107,7 +107,8 @@ sub main {
my $eventbox = gtksignal_connect(Gtk2::EventBox->new, button_press_event => sub {
$_[1]->button == 1 or return;
$toggle_expand->();
- $expander->set_expanded(!$expander->get_expanded);
+ my $expanded = !$expander->get_expanded;
+ $expander->set_expanded($expanded);
});
my $box = gtknew('VBox', spacing => 5, children_tight => [
gtknew('HBox', children => [