FIX: [STUDIO-1401] C11 has not access code now

Change-Id: I31a8e45290f98455ff2703f70e20f5427e8c22ab
This commit is contained in:
chunmao.guo 2022-11-18 15:39:23 +08:00 committed by Lane.Wei
parent 6d2a667c92
commit fc7b1cf9fe

View file

@ -142,7 +142,7 @@ void MediaPlayCtrl::Play()
m_button_play->SetIcon("media_stop");
SetStatus(_L("Initializing..."));
if (!m_lan_ip.empty() && !m_lan_passwd.empty()) {
if (!m_lan_ip.empty() && (!m_lan_mode || !m_lan_passwd.empty())) {
m_url = "bambu:///local/" + m_lan_ip + ".?port=6000&user=" + m_lan_user + "&passwd=" + m_lan_passwd;
m_last_state = MEDIASTATE_LOADING;
SetStatus(_L("Loading..."));