Skip to content

Commit

Permalink
Fix hotspot
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Mar 28, 2024
1 parent e80e320 commit 2d46e17
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Views/HotspotPage.vala
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,23 @@
} else {
state = NM.DeviceState.DISCONNECTED;
}

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 2d46e17

Please sign in to comment.