diff options
-rwxr-xr-x | bin/net_applet | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/net_applet b/bin/net_applet index 629d16f..6662fe3 100755 --- a/bin/net_applet +++ b/bin/net_applet @@ -404,10 +404,10 @@ sub create_action_item { my @menu = create_menu_choices($action); @menu || $actions{$action}{header} or return (); gtkshow(create_menu($name, - if_($actions{$action}{header}, + $actions{$action}{header} ? ( create_action_item($actions{$action}{header}), gtkshow(Gtk2::SeparatorMenuItem->new), - ), + ) : (), @menu, )); } else { |