diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-09 22:05:41 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-09 22:05:41 +0300 |
commit | 3acfd4eae51568b327c49af530a5523460f90630 (patch) | |
tree | 3aaf3c7073c963abf01080bfe6c6aa6d8e990d92 | |
parent | a1101ec38cb29f701457215e35f75904326120cb (diff) |
DocumentWidget: Animate players after tab change
-rw-r--r-- | src/ui/documentwidget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index db7d8c8a..1f0bce52 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -450,6 +450,7 @@ static void updateOutlineOpacity_DocumentWidget_(iDocumentWidget *d) { | |||
450 | 450 | ||
451 | static void animatePlayingAudio_DocumentWidget_(void *widget) { | 451 | static void animatePlayingAudio_DocumentWidget_(void *widget) { |
452 | iDocumentWidget *d = widget; | 452 | iDocumentWidget *d = widget; |
453 | if (document_App() != d) return; | ||
453 | iConstForEach(PtrArray, i, &d->visiblePlayers) { | 454 | iConstForEach(PtrArray, i, &d->visiblePlayers) { |
454 | const iGmRun *run = i.ptr; | 455 | const iGmRun *run = i.ptr; |
455 | iPlayer *plr = audioPlayer_Media(media_GmDocument(d->doc), run->audioId); | 456 | iPlayer *plr = audioPlayer_Media(media_GmDocument(d->doc), run->audioId); |
@@ -1289,6 +1290,7 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd) | |||
1289 | updateOutlineOpacity_DocumentWidget_(d); | 1290 | updateOutlineOpacity_DocumentWidget_(d); |
1290 | updateWindowTitle_DocumentWidget_(d); | 1291 | updateWindowTitle_DocumentWidget_(d); |
1291 | allocVisBuffer_DocumentWidget_(d); | 1292 | allocVisBuffer_DocumentWidget_(d); |
1293 | animatePlayingAudio_DocumentWidget_(d); | ||
1292 | return iFalse; | 1294 | return iFalse; |
1293 | } | 1295 | } |
1294 | else if (equal_Command(cmd, "server.showcert") && d == document_App()) { | 1296 | else if (equal_Command(cmd, "server.showcert") && d == document_App()) { |