Merge pull request #111758 from bruvzg/ios_spam
[macOS] Prevent error spam when iOS device is paired but sleeping.
This commit is contained in:
commit
edffd0712f
1 changed files with 1 additions and 1 deletions
|
|
@ -2423,7 +2423,7 @@ void EditorExportPlatformAppleEmbedded::_check_for_changes_poll_thread(void *ud)
|
|||
const Dictionary &device_info = devices[i];
|
||||
const Dictionary &conn_props = device_info["connectionProperties"];
|
||||
const Dictionary &dev_props = device_info["deviceProperties"];
|
||||
if (conn_props["pairingState"] == "paired" && dev_props["developerModeStatus"] == "enabled") {
|
||||
if (dev_props.has("developerModeStatus") && conn_props.has("pairingState") && conn_props.has("transportType") && conn_props["pairingState"] == "paired" && dev_props["developerModeStatus"] == "enabled") {
|
||||
Device nd;
|
||||
nd.id = device_info["identifier"];
|
||||
nd.name = dev_props["name"].operator String() + " (devicectl, " + ((conn_props["transportType"] == "localNetwork") ? "network" : "wired") + ")";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue