WM: use last_redo operator

Was showing operators that weren't meant to display in the UI.
This commit is contained in:
Campbell Barton 2018-04-23 12:36:20 +02:00
parent dc16f6fedc
commit 100e10e4b0
1 changed files with 1 additions and 2 deletions

View File

@ -133,8 +133,7 @@ class TOPBAR_HT_lower_bar(Header):
# Last Action (redo)
layout.label("Last Action:")
operators = context.window_manager.operators
op = operators[-1] if operators else None
op = context.active_operator
row = layout.row()
row.enabled = op is not None
row.popover(