mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
UI: Collection Exporter remove confirmation when deleting
Part of https://projects.blender.org/blender/blender/issues/162410 Remove confirmation when deleting, since undo is supported and the user could just undo if they didn't want to delete. Pull Request: https://projects.blender.org/blender/blender/pulls/162932
This commit is contained in:
parent
c1113663ce
commit
1fd06ddba6
1 changed files with 0 additions and 9 deletions
|
|
@ -848,14 +848,6 @@ static wmOperatorStatus collection_exporter_remove_exec(bContext *C, wmOperator
|
||||||
return OPERATOR_FINISHED;
|
return OPERATOR_FINISHED;
|
||||||
}
|
}
|
||||||
|
|
||||||
static wmOperatorStatus collection_exporter_remove_invoke(bContext *C,
|
|
||||||
wmOperator *op,
|
|
||||||
const wmEvent * /*event*/)
|
|
||||||
{
|
|
||||||
return WM_operator_confirm_ex(
|
|
||||||
C, op, IFACE_("Remove exporter?"), nullptr, IFACE_("Delete"), ui::AlertIcon::None, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void COLLECTION_OT_exporter_remove(wmOperatorType *ot)
|
static void COLLECTION_OT_exporter_remove(wmOperatorType *ot)
|
||||||
{
|
{
|
||||||
/* identifiers */
|
/* identifiers */
|
||||||
|
|
@ -864,7 +856,6 @@ static void COLLECTION_OT_exporter_remove(wmOperatorType *ot)
|
||||||
ot->idname = "COLLECTION_OT_exporter_remove";
|
ot->idname = "COLLECTION_OT_exporter_remove";
|
||||||
|
|
||||||
/* API callbacks. */
|
/* API callbacks. */
|
||||||
ot->invoke = collection_exporter_remove_invoke;
|
|
||||||
ot->exec = collection_exporter_remove_exec;
|
ot->exec = collection_exporter_remove_exec;
|
||||||
ot->poll = collection_exporter_remove_poll;
|
ot->poll = collection_exporter_remove_poll;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue