Skip to content

Commit

Permalink
fix VPN
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Mar 28, 2024
1 parent faa968b commit e80e320
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/Views/VPNPage.vala
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,22 @@ public class Network.VPNPage : Network.Widgets.Page {
}
}

update_switch ();
switch (state) {
case ACTIVATED:
status_type = SUCCESS;
break;
case DISCONNECTED:
status_type = OFFLINE;
break;
case FAILED:
status_type = ERROR;
break;
default:
status_type = WARNING;
break;
}

status = Utils.state_to_string (state);
}

protected override void update_switch () {
Expand Down

0 comments on commit e80e320

Please sign in to comment.