fix: desktop backups directory change (#1178)

* fix: only move backup related files when changing file backups location

* fix: remove presently recursive error handling for third party component installation
This commit is contained in:
Mo
2022-06-29 09:03:09 -05:00
committed by GitHub
parent a3a654f381
commit b8efd823ac
4 changed files with 41 additions and 18 deletions

View File

@@ -68,7 +68,6 @@ export class DesktopManager
return component.payloadRepresentation().ejected()
}
// All `components` should be installed
syncComponentsInstallation(components: SNComponent[]) {
Promise.all(
components.map((component) => {
@@ -114,7 +113,7 @@ export class DesktopManager
this.webApplication.notifyWebEvent(WebAppEvent.WindowDidBlur)
}
async onComponentInstallationComplete(componentData: DecryptedTransferPayload<ComponentContent>, error: unknown) {
async onComponentInstallationComplete(componentData: DecryptedTransferPayload<ComponentContent>) {
const component = this.application.items.findItem(componentData.uuid)
if (!component) {
return
@@ -124,15 +123,11 @@ export class DesktopManager
component,
(m) => {
const mutator = m as ComponentMutator
if (error) {
mutator.setAppDataItem(AppDataField.ComponentInstallError, error)
} else {
// eslint-disable-next-line camelcase
mutator.local_url = componentData.content.local_url as string
// eslint-disable-next-line camelcase
mutator.package_info = componentData.content.package_info
mutator.setAppDataItem(AppDataField.ComponentInstallError, undefined)
}
// eslint-disable-next-line camelcase
mutator.local_url = componentData.content.local_url as string
// eslint-disable-next-line camelcase
mutator.package_info = componentData.content.package_info
mutator.setAppDataItem(AppDataField.ComponentInstallError, undefined)
},
undefined,
)