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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user