Skip to content

Commit

Permalink
Better wifi device status subtitle text (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjr authored Oct 6, 2020
1 parent dfeeae6 commit e940a12
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Widgets/DeviceItem.vala
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ namespace Network.Widgets {
break;
}

subtitle = Utils.state_to_string (state);
if (device is NM.DeviceWifi && state == NM.DeviceState.UNAVAILABLE) {
subtitle = _("Disabled");
} else {
subtitle = Utils.state_to_string (state);
}
} else if (custom_mode != Utils.CustomMode.INVALID) {
switch (custom_mode) {
case Utils.CustomMode.PROXY_NONE:
Expand Down

0 comments on commit e940a12

Please sign in to comment.