chore:更新下载进度条显示

This commit is contained in:
2025-06-12 09:23:28 +08:00
parent e416ffdbff
commit 90b21d40cf
4 changed files with 87 additions and 98 deletions

View File

@@ -23,9 +23,13 @@ signals:
void updateDisplay(); // 声明更新显示的信号
private:
DownloadManager *m_downloadManager; // 声明下载管理器指针
int m_progress = 0; // 声明下载进度
bool m_isDownloading = false; // 声明下载状态
struct DownloadInfo {
int progress = 0;
bool isDownloading = false;
};
QHash<QString, DownloadInfo> m_downloads; // 使用包名作为键的下载状态
DownloadManager *m_downloadManager;
};
#endif // APPDELEGATE_H