diff --git a/src/apps/components/messagecomposer/MessageComposer/ActionBar.svelte b/src/apps/components/messagecomposer/MessageComposer/ActionBar.svelte index 494693f9..a1f380d6 100755 --- a/src/apps/components/messagecomposer/MessageComposer/ActionBar.svelte +++ b/src/apps/components/messagecomposer/MessageComposer/ActionBar.svelte @@ -19,8 +19,14 @@ {#snippet rightContent()} process.addAttachment()} /> - process.discard()} className="discard-button"/> - process.send()}> + process.discard()} + className="discard-button" + /> + process.send()}> Send {/snippet} diff --git a/src/apps/user/mediaplayer/runtime.ts b/src/apps/user/mediaplayer/runtime.ts index 2174a747..ad867e8b 100755 --- a/src/apps/user/mediaplayer/runtime.ts +++ b/src/apps/user/mediaplayer/runtime.ts @@ -144,7 +144,7 @@ export class MediaPlayerRuntime extends AppProcess { return; } - + if (file) { if (file.endsWith(".arcpl")) this.readPlaylist(file); else this.readFile([file]); @@ -411,17 +411,15 @@ export class MediaPlayerRuntime extends AppProcess { this.url.set(url); this.windowTitle.set(`${getItemNameFromPath(path)} - Media Player`); this.windowIcon.set(fileAssociation?.icon || this.getIconCached("MediaPlayerIcon")); - - this.parseMetadata(path); - this.Reset(); await Sleep(10); await this.player?.play(); + this.parseMetadata(path); this.Loaded.set(true); - } catch { - this.failedToPlay(); + } catch (e) { + this.failedToPlay(e); } } @@ -585,7 +583,7 @@ export class MediaPlayerRuntime extends AppProcess { { title: "Failed to play", message: - `Media Player failed to play the file you wanted to open. It might not be a (supported) audio or video file. Please try a different file. ${e ?? ""}`.trim(), + `Media Player failed to play the file you wanted to open. It might not be a (supported) audio or video file. Please try a different file.

Details: ${e ?? ""}`.trim(), buttons: [{ caption: "Okay", action: () => {}, suggested: true }], image: "MediaPlayerIcon", sound: "arcos.dialog.error", diff --git a/src/ts/servicehost/index.ts b/src/ts/servicehost/index.ts index 78e58662..f1b37848 100644 --- a/src/ts/servicehost/index.ts +++ b/src/ts/servicehost/index.ts @@ -47,7 +47,7 @@ export class ServiceHost extends Process implements IServiceHost { service.id = id; const startResult = await this.startService(id, broadcast); - if (startResult.startsWith("err_")) { + if (startResult.startsWith("err_") && startResult !== "err_startCondition") { startErrors[service.name] = startResult; broadcast?.(`Service ${service.name} failed to start.`); } diff --git a/src/ts/servicehost/services/MigrationSvc/nodes/IconConfiguration.ts b/src/ts/servicehost/services/MigrationSvc/nodes/IconConfiguration.ts index a1d6ea6b..ca1b2d61 100644 --- a/src/ts/servicehost/services/MigrationSvc/nodes/IconConfiguration.ts +++ b/src/ts/servicehost/services/MigrationSvc/nodes/IconConfiguration.ts @@ -1,4 +1,5 @@ import type { IMigrationNodeConstructor } from "$interfaces/migration"; +import type { IIconService } from "$interfaces/services/IconService"; import type { IMigrationService } from "$interfaces/services/MigrationSvc"; import type { MigrationResult } from "$types/migrations"; import { MigrationNode } from "../node"; @@ -12,10 +13,10 @@ export class IconConfigurationMigration extends MigrationNode { } async runMigration(): Promise { - const service = this.svc.host.getService("IconService"); + const service = this.svc.host.getService("IconService"); const icons = service?.defaultConfiguration(); - service?.Configuration.update((v: any) => { + service?.Icons.update((v: any) => { for (const icon in icons) { if (!v[icon]) { v[icon] = icons[icon];