解决设备页标题显示错误的问题

This commit is contained in:
suntao 2021-06-10 19:11:14 +08:00
parent 8dfd4d696c
commit ebe3dc11e6

View File

@ -117,6 +117,7 @@ public class DeviceView : MonoBehaviour
} }
InitLogo(); InitLogo();
title.text = GetTitle();
connectionPanel.SetActive(false); connectionPanel.SetActive(false);
@ -226,9 +227,7 @@ public class DeviceView : MonoBehaviour
logo.sprite = sprite0; logo.sprite = sprite0;
noDevice.text = "NO DEVICE"; noDevice.text = "NO DEVICE";
searchState.text = "Searching..."; searchState.text = "Searching...";
title.text = GetTitle();
var hasDevice = App.MainDeviceAdapter.GetDevices().Any(d => d.Sensor == SensorType); var hasDevice = App.MainDeviceAdapter.GetDevices().Any(d => d.Sensor == SensorType);
if (hasDevice) if (hasDevice)