mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 04:42:03 +08:00
update:从desktop文件中提取应用名
This commit is contained in:
@@ -15,13 +15,16 @@ void MainWindow::checkUpdates()
|
||||
// 获取可更新包列表
|
||||
QStringList updateablePackages = updater.getUpdateablePackages();
|
||||
QStringList packageSizes = updater.getPackageSizes();
|
||||
|
||||
QStringList appNames = updater.getDesktopAppNames();
|
||||
qDebug() << "可更新包列表:";
|
||||
for (int i = 0; i < updateablePackages.size(); ++i) {
|
||||
QString packageInfo = updateablePackages.at(i);
|
||||
QString packageSize = (i < packageSizes.size()) ? packageSizes.at(i) : "未知大小";
|
||||
qDebug() << QString("%1 (%2)").arg(packageInfo, packageSize);
|
||||
}
|
||||
for (const QString &appName : appNames) {
|
||||
qDebug() << appName;
|
||||
}
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
|
||||
Reference in New Issue
Block a user