WIP: enchance device pairing process

- Introduced devicePasswordProtected signal in AppContext to notify when a device is password protected.
- Modified DeviceManagerWidget to handle devicePasswordProtected signal and update pending device state accordingly.
- Enhanced DevicePendingWidget to display appropriate messages based on device lock status.
This commit is contained in:
uncor3
2025-10-01 15:10:40 +00:00
parent 94f85bd8fe
commit 6bbad2a3b6
6 changed files with 47 additions and 12 deletions
+5 -2
View File
@@ -83,8 +83,11 @@ void AppContext::addDevice(QString udid, idevice_connection_type conn_type,
// because it's less likely that it will be an error typeof
// LOCKDOWN_E_PASSWORD_PROTECTED if the device is paired type
if (addType == AddType::Regular) { // TODO:IMPLEMENT
// emit devicePasswordProtected(udid);
};
// FIXME: if a device never gets paired, it will stay in
// this
m_pendingDevices.append(udid);
emit devicePasswordProtected(udid);
}
} else if (initResult.error ==
LOCKDOWN_E_PAIRING_DIALOG_RESPONSE_PENDING) {
m_pendingDevices.append(udid);