forked from bartvdbraak/blender
Fix T56811: Do not show cancel button for jobs when UI is locked.
Since that button is then totally useless and unusable...
This commit is contained in:
parent
66ad9ef2ce
commit
640fcc25a4
@ -3876,10 +3876,12 @@ void uiTemplateRunningJobs(uiLayout *layout, bContext *C)
|
|||||||
UI_but_func_tooltip_set(but_progress, progress_tooltip_func, tip_arg);
|
UI_but_func_tooltip_set(but_progress, progress_tooltip_func, tip_arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!wm->is_interface_locked) {
|
||||||
uiDefIconTextBut(block, UI_BTYPE_BUT, handle_event, ICON_PANEL_CLOSE,
|
uiDefIconTextBut(block, UI_BTYPE_BUT, handle_event, ICON_PANEL_CLOSE,
|
||||||
"", 0, 0, UI_UNIT_X, UI_UNIT_Y,
|
"", 0, 0, UI_UNIT_X, UI_UNIT_Y,
|
||||||
NULL, 0.0f, 0.0f, 0, 0, TIP_("Stop this job"));
|
NULL, 0.0f, 0.0f, 0, 0, TIP_("Stop this job"));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (screen->animtimer)
|
if (screen->animtimer)
|
||||||
uiDefIconTextBut(block, UI_BTYPE_BUT, B_STOPANIM, ICON_CANCEL, IFACE_("Anim Player"), 0, 0, UI_UNIT_X * 5.0f, UI_UNIT_Y,
|
uiDefIconTextBut(block, UI_BTYPE_BUT, B_STOPANIM, ICON_CANCEL, IFACE_("Anim Player"), 0, 0, UI_UNIT_X * 5.0f, UI_UNIT_Y,
|
||||||
|
Loading…
Reference in New Issue
Block a user