Fixed bug number 9952.

This commit is contained in:
xiaojiazhu 2023-11-23 10:31:35 +08:00
parent be3a706681
commit a5205f8f17

View File

@ -537,6 +537,7 @@ static void update_camera_message(void)
} }
} }
extern int is_menu_screen_luck(void);
static void update_wifi(void) static void update_wifi(void)
{ {
const int EMPTY_IMAGE = 0; const int EMPTY_IMAGE = 0;
@ -557,6 +558,13 @@ static void update_wifi(void)
int index = status; int index = status;
lv_obj_set_hidden(image_wifi_connected_scr_uiflowphoto, false); lv_obj_set_hidden(image_wifi_connected_scr_uiflowphoto, false);
lv_plugin_img_set_src(image_wifi_connected_scr_uiflowphoto, res[index]); lv_plugin_img_set_src(image_wifi_connected_scr_uiflowphoto, res[index]);
lv_obj_t *scr = lv_plugin_scr_act();
#define MENU_UNLUCK 0
if (scr != UIFlowPhoto && SF_WIFI_CON == status && MENU_UNLUCK == is_menu_screen_luck())
{
printf("Back to photo screen.\n");
Ux_PostEvent(NVTEVT_SYSTEM_MODE, 1, PRIMARY_MODE_PHOTO);
}
} }
static void update_bluetooth(void) static void update_bluetooth(void)