Compare commits
2 Commits
a1f3221ae0
...
ca042827d6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca042827d6 | ||
|
|
ba5753a2ef |
@ -822,6 +822,7 @@ namespace Kill.UI.Pages
|
||||
|
||||
public async Task Init()
|
||||
{
|
||||
LoadingUI.Show();
|
||||
if (DataManager.Instance.userInfo.device_count == 0)
|
||||
{
|
||||
noDevicePage.SetActive(true);
|
||||
@ -877,14 +878,14 @@ 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();
|
||||
|
||||
@ -928,6 +929,7 @@ namespace Kill.UI.Pages
|
||||
DataManager.Instance.selectedDevice = selectedDevice;
|
||||
DataManager.Instance.OwnedDevices=OwnedDevices;
|
||||
DataManager.Instance.SharedDevices=SharedDevices;
|
||||
LoadingUI.Hide();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user