diff --git a/src/core/services/set_location.cpp b/src/core/services/set_location.cpp index ae70f80..cfe8b0d 100644 --- a/src/core/services/set_location.cpp +++ b/src/core/services/set_location.cpp @@ -43,13 +43,6 @@ #endif #include -// TODO: check for these -// if (device_version >= IDEVICE_DEVICE_VERSION(17,0,0)) { -// printf("Note: This tool is currently not supported on iOS 17+\n"); -// } else { -// printf("Make sure a developer disk image is mounted!\n"); -// } - enum { SET_LOCATION = 0, RESET_LOCATION = 1 }; bool set_location(idevice_t device, char *lat, char *lon) { diff --git a/src/devdiskimageswidget.cpp b/src/devdiskimageswidget.cpp index 868c03d..3606463 100644 --- a/src/devdiskimageswidget.cpp +++ b/src/devdiskimageswidget.cpp @@ -179,11 +179,10 @@ void DevDiskImagesWidget::displayImages() { m_imageListWidget->clear(); - // Get device version for compatibility checking int deviceMajorVersion = 0; int deviceMinorVersion = 0; bool hasConnectedDevice = false; - // todo wtf is this + if (m_currentDevice && m_currentDevice->device) { unsigned int device_version = idevice_get_device_version(m_currentDevice->device); diff --git a/src/devicemanagerwidget.h b/src/devicemanagerwidget.h index 3efb6a2..8f9f574 100644 --- a/src/devicemanagerwidget.h +++ b/src/devicemanagerwidget.h @@ -57,7 +57,6 @@ private: void addRecoveryDevice(const iDescriptorRecoveryDevice *device); void removeRecoveryDevice(uint64_t ecid); #endif - // TODO:udid or uuid ? void addPendingDevice(const QString &udid, bool locked); void addPairedDevice(iDescriptorDevice *device); void removePendingDevice(const QString &udid); diff --git a/src/main.cpp b/src/main.cpp index 4585782..7cb2815 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include