mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
UI: Fix undo/redo enabling redo with no items in redo
This commit is contained in:
parent
607ee098c5
commit
732c2c7e9e
@ -116,7 +116,8 @@ void undo_stack::enable_undo_redo()
|
||||
last_is_repeatable = false;
|
||||
|
||||
ui->actionMainUndo->setDisabled(false);
|
||||
ui->actionMainRedo->setDisabled(false);
|
||||
if (redo_items.size() > 0)
|
||||
ui->actionMainRedo->setDisabled(false);
|
||||
}
|
||||
|
||||
void undo_stack::disable_undo_redo()
|
||||
|
Loading…
Reference in New Issue
Block a user