mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 921226 - Log during app install in App Manager. r=ochameau
This commit is contained in:
parent
17c9ab59f5
commit
3d174944c7
@ -208,8 +208,10 @@ let UI = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
install: function(project) {
|
install: function(project) {
|
||||||
|
this.connection.log("Installing the " + project.manifest.name + " app...");
|
||||||
|
let installPromise;
|
||||||
if (project.type == "packaged") {
|
if (project.type == "packaged") {
|
||||||
return installPackaged(this.connection.client, this.listTabsResponse.webappsActor, project.location, project.packagedAppOrigin)
|
installPromise = installPackaged(this.connection.client, this.listTabsResponse.webappsActor, project.location, project.packagedAppOrigin)
|
||||||
.then(({ appId }) => {
|
.then(({ appId }) => {
|
||||||
// If the packaged app specified a custom origin override,
|
// If the packaged app specified a custom origin override,
|
||||||
// we need to update the local project origin
|
// we need to update the local project origin
|
||||||
@ -225,8 +227,16 @@ let UI = {
|
|||||||
origin: origin.spec,
|
origin: origin.spec,
|
||||||
manifestURL: project.location
|
manifestURL: project.location
|
||||||
};
|
};
|
||||||
return installHosted(this.connection.client, this.listTabsResponse.webappsActor, appId, metadata, project.manifest);
|
installPromise = installHosted(this.connection.client, this.listTabsResponse.webappsActor, appId, metadata, project.manifest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
installPromise.then(() => {
|
||||||
|
this.connection.log("Install completed.");
|
||||||
|
}, () => {
|
||||||
|
this.connection.log("Install failed.");
|
||||||
|
});
|
||||||
|
|
||||||
|
return installPromise;
|
||||||
},
|
},
|
||||||
|
|
||||||
start: function(project) {
|
start: function(project) {
|
||||||
|
Loading…
Reference in New Issue
Block a user