mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-21 19:35:49 +08:00
integrate ZUpdater & refactor device management and UI components
- Integrated ZUpdater to handle auto updating - Updated DeviceManagerWidget to improve device selection logic and ensure current device is set correctly when devices are added or removed. - Enhanced FileExplorerWidget to reset the view when sidebar items are clicked. - Changed ZIconWidget to inherit from QAbstractButton for better button behavior and removed unnecessary mouse event handling. - Updated iDescriptor to include device version parsing and improved device version retrieval logic. - Refactored iFuseDiskUnmountButton and iFuseDiskUnmountButton to use ZIconWidget for a consistent UI. - Improved iFuseWidget to handle device selection more robustly and update UI accordingly. - Added SponsorAppCard and SponsorWidget to promote sponsorship within the app. - Updated ToolboxWidget to streamline device selection and toolbox functionality. - General code cleanup and comments for better maintainability.
This commit is contained in:
@@ -174,6 +174,15 @@ DeviceInfo fullDeviceInfo(const pugi::xml_document &doc,
|
||||
d.firmwareVersion = safeGet("FirmwareVersion");
|
||||
d.productVersion = safeGet("ProductVersion");
|
||||
|
||||
QString q_version = QString::fromStdString(d.productVersion);
|
||||
QStringList parts = q_version.split('.');
|
||||
|
||||
int major = (parts.length() > 0) ? parts[0].toInt() : 0;
|
||||
int minor = (parts.length() > 1) ? parts[1].toInt() : 0;
|
||||
int patch = (parts.length() > 2) ? parts[2].toInt() : 0;
|
||||
|
||||
d.parsedDeviceVersion = IDESCRIPTOR_DEVICE_VERSION(major, minor, patch);
|
||||
|
||||
/*DiskInfo*/
|
||||
try {
|
||||
d.diskInfo.totalDiskCapacity =
|
||||
|
||||
Reference in New Issue
Block a user