diff --git a/src/Views/HotspotPage.vala b/src/Views/HotspotPage.vala index 6729c29b..04206852 100644 --- a/src/Views/HotspotPage.vala +++ b/src/Views/HotspotPage.vala @@ -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 () {