Generate translation template from Command Palette

This commit is contained in:
kobewi
2026-01-10 00:45:41 +01:00
parent 2d0a589777
commit 15b34a7113
5 changed files with 23 additions and 10 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ void EditorScriptPlugin::command_palette_about_to_popup() {
commands.clear();
ScriptServer::get_indirect_inheriters_list(SNAME("EditorScript"), &commands);
for (const StringName &command : commands) {
EditorInterface::get_singleton()->get_command_palette()->add_command(String(command).capitalize(), "editor_scripts/" + command, callable_mp(this, &EditorScriptPlugin::run_command), varray(command), nullptr);
EditorInterface::get_singleton()->get_command_palette()->add_command(String(command).capitalize(), "editor_scripts/" + command, callable_mp(this, &EditorScriptPlugin::run_command).bind(command));
}
}