diff options
author | Robert Griebl <robert.griebl@qt.io> | 2023-10-09 20:43:51 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-10-11 06:17:24 +0000 |
commit | 58d3d0eb230dcf489872a99005006efcee6cde6a (patch) | |
tree | 4d09a109887331e1b81faa4023fcd34e24db47f2 | |
parent | 4e6a1bfd470c614e1d7cca695530b45d5176fa7f (diff) |
Add missing fields to AI::taskRequestingInstallationAcknowledge (2)
This amends commit a4c0ac1c5eda8c9cb7eb5cfb7f50f852eedccd3b, which
missed to take the "applicationProperties" field into account.
The ApplicationInstaller API is deprecated and cannot supply all the
information the newer PackageManager API can do, especially when
having packages with multiple apps.
In the case of single-app packages, the AI API should however report
everything it can to be as backwards compatible as possible.
Pick-to: 6.2 5.15
Change-Id: I5d330ec4b5dccadce3e30ba3510865ad6e93c122
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
(cherry picked from commit d37f9dbab83469f3ff16b99163df28285acc87b2)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 6d9d6e0e823197e0f5179b1524cbf36a0fe7a50d)
-rw-r--r-- | src/main-lib/applicationinstaller.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main-lib/applicationinstaller.cpp b/src/main-lib/applicationinstaller.cpp index 792a6023..40909c01 100644 --- a/src/main-lib/applicationinstaller.cpp +++ b/src/main-lib/applicationinstaller.cpp @@ -139,6 +139,7 @@ ApplicationInstaller::ApplicationInstaller(PackageManager *pm, QObject *parent) // legacy support for single-application packages auto app = static_cast<Application *>(package->applications().first()); + applicationData[qSL("applicationProperties")] = app->info()->allAppProperties(); applicationData[qSL("codeFilePath")] = app->info()->codeFilePath(); applicationData[qSL("runtimeName")] = app->runtimeName(); applicationData[qSL("runtimeParameters")] = app->runtimeParameters(); |