Skip to content

Commit

Permalink
issue #153 - fixed flashing project elements while play
Browse files Browse the repository at this point in the history
  • Loading branch information
Manvel committed Jun 8, 2024
1 parent be7b1b9 commit 0c6046b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/js/ui/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0c6046b

Please sign in to comment.