Compare commits

..

No commits in common. "ca042827d6585a7e5aa44707b32ba0799d66ad8f" and "a1f3221ae0512d3fc3c0b14d5402d82b072505e6" have entirely different histories.

View File

@ -822,7 +822,6 @@ namespace Kill.UI.Pages
public async Task Init()
{
LoadingUI.Show();
if (DataManager.Instance.userInfo.device_count == 0)
{
noDevicePage.SetActive(true);
@ -878,13 +877,13 @@ namespace Kill.UI.Pages
Debug.Log("当前选中设备:" + DataManager.Instance.selectedDeviceMac);
}
}
selectDeviceButton.GetComponentInChildren<Text>().text = selectedDevice.device_name;
selectDeviceButton.gameObject.SetActive(true);
hasWifi=await GetDeviceOnlineStatus();
DataManager.Instance.hasWifi=hasWifi;
hasBluetooth = BluetoothManager.Instance.ChangeAimMac(selectedDevice.ble_mac);
DataManager.Instance.hasBluetooth=hasBluetooth;
selectDeviceButton.GetComponentInChildren<Text>().text = selectedDevice.device_name;
selectDeviceButton.gameObject.SetActive(true);
// 先初始化所有 UI 为未连接状态
ResetAllDeviceUI();
@ -929,7 +928,6 @@ namespace Kill.UI.Pages
DataManager.Instance.selectedDevice = selectedDevice;
DataManager.Instance.OwnedDevices=OwnedDevices;
DataManager.Instance.SharedDevices=SharedDevices;
LoadingUI.Hide();
}
/// <summary>