Fix #113383: Clear button in selector input in redo panel closes the panel

`UI_OT_button_string_clear` clears the redo panel in `wm_operator_finished`.
hud_status is set to CLEAR due to undo flag on above the internal operator.
To fix the redo panel from closing, undo flag from the operator could be
removed. Alternative is, skip internal operators from closing the redo
panel with extra check `if (op->type->flag & OPTYPE_INTERNAL) {return;}`

Ref: !135727
This commit is contained in:
Pratik Borhade
2025-03-22 15:47:41 +11:00
committed by Campbell Barton
parent 5ce4e91a80
commit 4281767fc0

View File

@@ -2301,7 +2301,7 @@ static void UI_OT_button_string_clear(wmOperatorType *ot)
ot->poll = ED_operator_regionactive;
ot->exec = button_string_clear_exec;
ot->flag = OPTYPE_UNDO | OPTYPE_INTERNAL;
ot->flag = OPTYPE_INTERNAL;
}
/** \} */