From 74fbe3d4e2268f7bdab5c6fea5d8f47a0f533ea2 Mon Sep 17 00:00:00 2001
From: rhenck <richard.henck@iqb.hu-berlin.de>
Date: Mon, 28 Feb 2022 11:13:46 +0100
Subject: [PATCH] [editor] Fix changing Player-Properties

---
 projects/editor/src/app/services/unit.service.ts | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/projects/editor/src/app/services/unit.service.ts b/projects/editor/src/app/services/unit.service.ts
index 94ac36f64..f08930072 100644
--- a/projects/editor/src/app/services/unit.service.ts
+++ b/projects/editor/src/app/services/unit.service.ts
@@ -255,7 +255,13 @@ export class UnitService {
         'backgroundColor', 'borderRadius', 'itemBackgroundColor', 'borderWidth', 'borderColor',
         'borderStyle', 'lineColoring', 'lineColoringColor'].includes(property)) {
         element.styles![property] = Copy.getCopy(value);
+      } else if (['autostart', 'autostartDelay', 'loop', 'startControl', 'pauseControl',
+        'progressBar', 'interactiveProgressbar', 'volumeControl', 'defaultVolume', 'minVolume',
+        'muteControl', 'interactiveMuteControl', 'hintLabel', 'hintLabelDelay', 'activeAfterID',
+        'minRuns', 'maxRuns', 'showRestRuns', 'showRestTime', 'playbackTime'].includes(property)) {
+        element.playerProps![property] = Copy.getCopy(value);
       } else {
+        // TODO playerProps behandeln
         element[property] = Copy.getCopy(value);
       }
     });
-- 
GitLab