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:
uncor3
2026-03-25 10:52:24 +00:00
parent 95c53eb6ad
commit f4ffbcaf54
20 changed files with 843 additions and 398 deletions
+7 -2
View File
@@ -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;