From 0c6046b7b9c6fe9ef25cc899bbe02893d33f7111 Mon Sep 17 00:00:00 2001 From: Manvel Saroyan Date: Sat, 8 Jun 2024 21:30:22 +0200 Subject: [PATCH] issue #153 - fixed flashing project elements while play --- src/js/ui/projects.js | 5 ++++- tests/tests/popup.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/js/ui/projects.js b/src/js/ui/projects.js index 491c2c7..561331e 100644 --- a/src/js/ui/projects.js +++ b/src/js/ui/projects.js @@ -251,7 +251,10 @@ async function keepHighlightingPlayingAction(isPopupLoad) if(cbaState.allowPlay || cbaState.paused) { - projectsComp.selectRow(cbaState.playingProjectId); + const selectedItem = projectsComp.getSelectedItem(); + if (selectedItem.id !== cbaState.playingProjectId) { + projectsComp.selectRow(cbaState.playingProjectId); + } if (cbaState.playingActionIndex >= 0) { const {id} = actionsComp.items[cbaState.playingActionIndex]; diff --git a/tests/tests/popup.js b/tests/tests/popup.js index 65cf885..4ec4ea9 100644 --- a/tests/tests/popup.js +++ b/tests/tests/popup.js @@ -555,7 +555,7 @@ it("Setting repeate should repeate the project, specified amount of times", asyn await updateSpecificAction("cba-table-id-3", "", "timer", "100"); await clickPlay(); - await wait(110); + await wait(150); equal((await getSelectedRow(cbaTableQuery)).id, "cba-table-id-2"); await wait(350);