Skip to content

Commit fd0cc13

Browse files
committed
issue #153 - fixed flashing project elements while play
1 parent be7b1b9 commit fd0cc13

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/js/ui/projects.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,10 @@ async function keepHighlightingPlayingAction(isPopupLoad)
251251

252252
if(cbaState.allowPlay || cbaState.paused)
253253
{
254-
projectsComp.selectRow(cbaState.playingProjectId);
254+
const selectedItem = projectsComp.getSelectedItem();
255+
if (selectedItem && selectedItem.id !== cbaState.playingProjectId) {
256+
projectsComp.selectRow(cbaState.playingProjectId);
257+
}
255258
if (cbaState.playingActionIndex >= 0)
256259
{
257260
const {id} = actionsComp.items[cbaState.playingActionIndex];

tests/tests/popup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,8 @@ it("Setting repeate should repeate the project, specified amount of times", asyn
550550
{
551551
await setValue("#repeat", 2);
552552
await addEmptyActions(3);
553-
await updateSpecificAction("cba-table-id-1", "", "timer", "100");
554-
await updateSpecificAction("cba-table-id-2", "", "timer", "100");
553+
await updateSpecificAction("cba-table-id-1", "", "timer", "90");
554+
await updateSpecificAction("cba-table-id-2", "", "timer", "90");
555555
await updateSpecificAction("cba-table-id-3", "", "timer", "100");
556556

557557
await clickPlay();

0 commit comments

Comments
 (0)