name every undo command

This commit is contained in:
itsmattkc
2023-03-12 00:49:03 -08:00
parent 019f095ee4
commit 2c2df99963
46 changed files with 172 additions and 122 deletions
+4 -4
View File
@@ -419,7 +419,7 @@ void Core::CreateNewFolder()
command->add_child(new NodeAddCommand(active_project, new_folder));
command->add_child(new FolderAddChild(folder, new_folder));
Core::instance()->undo_stack()->push(command);
Core::instance()->undo_stack()->push(command, tr("Created New Folder"));
// Trigger an automatic rename so users can enter the folder name
active_project_panel->Edit(new_folder);
@@ -456,7 +456,7 @@ void Core::CreateNewSequence()
// Create and connect default nodes to new sequence
new_sequence->add_default_nodes(command);
Core::instance()->undo_stack()->push(command);
Core::instance()->undo_stack()->push(command, tr("Created New Sequence"));
} else {
@@ -575,7 +575,7 @@ void Core::ImportTaskComplete(Task* task)
d.exec();
}
undo_stack_.push(command);
undo_stack_.push(command, tr("Imported %1 File(s)").arg(import_task->GetImportedFootage().size()));
main_window_->SelectFootage(import_task->GetImportedFootage());
}
@@ -1413,7 +1413,7 @@ bool Core::LabelNodes(const QVector<Node *> &nodes, MultiUndoCommand *parent)
if (parent) {
parent->add_child(rename_command);
} else {
undo_stack_.push(rename_command);
undo_stack_.push(rename_command, tr("Renamed %1 Node(s)").arg(nodes.size()));
}
return true;