mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-22 03:45:51 +08:00
Refactor LiveScreenWidget, implement HouseArrest , fix bugs
- Introduced ScreenshotrThread to manage screenshot capturing in a separate thread. - Updated LiveScreenWidget to utilize the new thread for capturing screenshots. - Removed unused timer and related code for periodic screenshot updates. - Enhanced error handling and initialization logic for screenshot service. - Updated ServiceManager to include methods for taking screenshots and enabling developer mode. - Refactored various methods in ServiceManager to accept optional parameters for AFC client handling. - Improved error handling in VirtualLocation for setting device location. - Enhanced ZLoadingWidget to support multiple content states using QStackedWidget. - Cleaned up code and comments across multiple files for better readability and maintainability.
This commit is contained in:
@@ -606,17 +606,11 @@ void DevDiskImagesWidget::mountImage(const QString &version)
|
||||
.arg(m_deviceComboBox->currentText()));
|
||||
return updateUI();
|
||||
} else if (info.err->code == DeviceLockedMountErrorCode) {
|
||||
QMessageBox::critical(this, "Device Locked",
|
||||
"The device is locked. Please unlock it and try"
|
||||
" again.");
|
||||
mounted_image_info_free(info);
|
||||
return updateUI();
|
||||
/* Never returns DeviceLockedMountErrorCode when doing
|
||||
image_mounter_lookup_image but maybe used in future */
|
||||
} else if (info.err->code == NotFoundErrorCode) {
|
||||
QMessageBox::critical(
|
||||
this, "No Mounted Image",
|
||||
"No developer disk image is mounted on the device.");
|
||||
mounted_image_info_free(info);
|
||||
return updateUI();
|
||||
// OK, no image mounted
|
||||
qDebug() << "Mount image: no mounted image found";
|
||||
} else {
|
||||
QMessageBox::critical(
|
||||
this, "Mount Check Failed",
|
||||
@@ -697,10 +691,6 @@ void DevDiskImagesWidget::closeEvent(QCloseEvent *event)
|
||||
event->accept();
|
||||
}
|
||||
|
||||
// Toolbox clicked: "Developer Disk Images"
|
||||
// terminate called after throwing an instance of 'std::logic_error'
|
||||
// what(): basic_string: construction from null is not valid
|
||||
|
||||
void DevDiskImagesWidget::checkMountedImage()
|
||||
{
|
||||
iDescriptorDevice *currentDevice =
|
||||
|
||||
Reference in New Issue
Block a user