diff options
-rw-r--r-- | lib/network/connection_manager.pm | 10 | ||||
-rwxr-xr-x | lib/network/netcenter.pm | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm index d8d9c80..81a5a20 100644 --- a/lib/network/connection_manager.pm +++ b/lib/network/connection_manager.pm @@ -135,7 +135,7 @@ sub start_connection { gtkset_mousecursor_normal($cmanager->{gui}{w}{window}->window); } - update_on_network_change($cmanager); + update_on_status_change($cmanager); } sub stop_connection { @@ -146,7 +146,7 @@ sub stop_connection { $cmanager->{connection}->disconnect; gtkset_mousecursor_normal($cmanager->{gui}{w}{window}->window); - update_on_network_change($cmanager); + update_on_status_change($cmanager); } sub toggle_would_disconnect { @@ -200,7 +200,7 @@ sub select_network { my ($selected) = $droam->{gui}{networks_list}->get_selected_indices; $droam->{connection}{network} = defined $selected && $droam->{gui}{networks_list}{data}[$selected][0]; } - update_on_network_change($droam); + update_on_status_change($droam); } sub update_networks { @@ -238,10 +238,10 @@ sub update_networks { } } - update_on_network_change($cmanager); + update_on_status_change($cmanager); } -sub update_on_network_change { +sub update_on_status_change { my ($cmanager) = @_; if ($cmanager->{gui}{buttons}{connect_toggle}) { diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm index c9855f1..25cd088 100755 --- a/lib/network/netcenter.pm +++ b/lib/network/netcenter.pm @@ -102,7 +102,7 @@ sub main { ]), ]), ]); - network::connection_manager::update_on_network_change($cmanager); + network::connection_manager::update_on_status_change($cmanager); $box; } @connections, ])), |