Fix: Revert change to use operator description as title in dialogs
This was part of #117528, but the description is not suitable as a title in general and this breaks various existing popups. It is often tool long and detailed, or just not worded in a way that works as a title.
This commit is contained in:
@@ -1939,9 +1939,8 @@ int WM_operator_props_dialog_popup(
|
||||
data->op = op;
|
||||
data->width = width * UI_SCALE_FAC;
|
||||
data->free_op = true; /* if this runs and gets registered we may want not to free it */
|
||||
data->title = (title == nullptr) ? WM_operatortype_description(C, op->type, op->ptr) : title;
|
||||
data->confirm_text = (confirm_text == nullptr) ? WM_operatortype_name(op->type, op->ptr) :
|
||||
confirm_text;
|
||||
data->title = (title == nullptr) ? WM_operatortype_name(op->type, op->ptr) : title;
|
||||
data->confirm_text = (confirm_text == nullptr) ? IFACE_("OK") : confirm_text;
|
||||
data->cancel_default = false;
|
||||
data->mouse_move_quit = false;
|
||||
data->include_properties = true;
|
||||
|
||||
Reference in New Issue
Block a user