UI: Improvements to Confirmation of Unpack Linked Libraries
A more informative confirmation dialog to confirm that the user wishes to unpack linked libraries. Pull Request: https://projects.blender.org/blender/blender/pulls/117154
This commit is contained in:
committed by
Harley Acheson
parent
b20f29bd04
commit
d379897019
@@ -87,8 +87,13 @@ static int unpack_libraries_exec(bContext *C, wmOperator *op)
|
||||
|
||||
static int unpack_libraries_invoke(bContext *C, wmOperator *op, const wmEvent * /*event*/)
|
||||
{
|
||||
return WM_operator_confirm_message(
|
||||
C, op, "Unpack Linked Libraries - creates directories, all new paths should work");
|
||||
return WM_operator_confirm_ex(C,
|
||||
op,
|
||||
IFACE_("Restore Packed Linked Data to Their Original Locations"),
|
||||
IFACE_("Will create directories so that all paths are valid."),
|
||||
IFACE_("Unpack"),
|
||||
ALERT_ICON_INFO,
|
||||
false);
|
||||
}
|
||||
|
||||
void FILE_OT_unpack_libraries(wmOperatorType *ot)
|
||||
|
||||
Reference in New Issue
Block a user