UI: Show animation cancel button in all status-bars

Previously the button would only show up in the status-bar located in
the same window that had the screen with the animation timer.
I don't see a reason not to show the button in all status-bars instead,
other animation feedback is also displayed in all windows.

Fixes T72194.
This commit is contained in:
Julian Eisel
2020-01-16 11:53:45 +01:00
parent dd4d27e907
commit 25cb12dc71

View File

@@ -6863,7 +6863,6 @@ static char *progress_tooltip_func(bContext *UNUSED(C), void *argN, const char *
void uiTemplateRunningJobs(uiLayout *layout, bContext *C)
{
bScreen *screen = CTX_wm_screen(C);
wmWindowManager *wm = CTX_wm_manager(C);
ScrArea *sa = CTX_wm_area(C);
uiBlock *block;
@@ -7045,7 +7044,7 @@ void uiTemplateRunningJobs(uiLayout *layout, bContext *C)
}
}
if (screen->animtimer) {
if (ED_screen_animation_playing(wm)) {
uiDefIconTextBut(block,
UI_BTYPE_BUT,
B_STOPANIM,