UI: Rename enable/disable funcs for undo/redo stack
This commit is contained in:
parent
ae60123f7f
commit
b86999e133
@ -110,7 +110,7 @@ void undo_stack::redo()
|
||||
}
|
||||
}
|
||||
|
||||
void undo_stack::enable_undo_redo()
|
||||
void undo_stack::enable()
|
||||
{
|
||||
disabled = false;
|
||||
last_is_repeatable = false;
|
||||
@ -120,7 +120,7 @@ void undo_stack::enable_undo_redo()
|
||||
ui->actionMainRedo->setDisabled(false);
|
||||
}
|
||||
|
||||
void undo_stack::disable_undo_redo()
|
||||
void undo_stack::disable()
|
||||
{
|
||||
disabled = true;
|
||||
last_is_repeatable = false;
|
||||
|
@ -42,8 +42,8 @@ private slots:
|
||||
public:
|
||||
undo_stack(ui_ptr ui);
|
||||
|
||||
void enable_undo_redo();
|
||||
void disable_undo_redo();
|
||||
void enable();
|
||||
void disable();
|
||||
|
||||
void clear();
|
||||
void add_action(const QString &name, undo_redo_cb undo,
|
||||
|
@ -267,13 +267,13 @@ void OBSBasicFilters::UpdatePropertiesView(int row, bool async)
|
||||
|
||||
obs_source_update(source, new_settings);
|
||||
|
||||
main->undo_s.enable_undo_redo();
|
||||
main->undo_s.enable();
|
||||
};
|
||||
|
||||
auto disabled_undo = [](void *vp, obs_data_t *settings) {
|
||||
OBSBasic *main =
|
||||
reinterpret_cast<OBSBasic *>(App()->GetMainWindow());
|
||||
main->undo_s.disable_undo_redo();
|
||||
main->undo_s.disable();
|
||||
obs_source_t *source = reinterpret_cast<obs_source_t *>(vp);
|
||||
obs_source_update(source, settings);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user