mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-22 03:45:51 +08:00
Refactor device event handling and improve icon loading in InstalledAppsWidget
- Updated DeviceInfoWidget to include necessary headers for UI components. - Modified DiskUsageWidget to enable debug mode for gallery usage. - Enhanced iDescriptor.h by adding new AddType for pairing failures. - Replaced QLabel with IDLoadingIconLabel in InstalledAppsWidget for better icon handling. - Implemented asynchronous icon loading in InstalledAppsWidget using a queue. - Improved event handling in main window to differentiate between connection states. - Added alreadyExists method in NetworkDeviceCard to handle already connected devices. - Updated Rust dependencies and added new header for device event subscription. - Refactored Rust code to improve device pairing logic and event callback handling.
This commit is contained in:
@@ -516,8 +516,13 @@ void DiskUsageWidget::fetchData()
|
||||
return result;
|
||||
}
|
||||
|
||||
result["galleryUsage"] = QVariant::fromValue(uint64_t(0));
|
||||
return result;
|
||||
// FIXME:
|
||||
// bool debug = qgetenv("ID_DESCRIPTOR_DEBUG_GALLERY_USAGE") == "1";
|
||||
bool debug = true;
|
||||
if (debug) {
|
||||
result["galleryUsage"] = QVariant::fromValue(uint64_t(0));
|
||||
return result;
|
||||
}
|
||||
|
||||
const size_t CHUNK_SIZE = 256 * 1024;
|
||||
uint8_t *db_data = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user