(Wifi) show 'no settings' found when selecting wifi settings

if null driver is selected
This commit is contained in:
twinaphex 2016-09-22 04:18:10 +02:00
parent 7dc297edfc
commit 9b93f1b520

View File

@ -4664,6 +4664,13 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
info->need_push = true;
break;
case DISPLAYLIST_WIFI_SETTINGS_LIST:
if (string_is_equal(settings->wifi.driver, "null"))
menu_entries_append_enum(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_SETTINGS_FOUND),
msg_hash_to_str(MENU_ENUM_LABEL_NO_SETTINGS_FOUND),
MENU_ENUM_LABEL_NO_SETTINGS_FOUND,
0, 0, 0);
else
{
unsigned i;
struct string_list *ssid_list = string_list_new();