Add missing code snippet copy notification to EditorHelpBit

This commit is contained in:
Danil Alexeev 2026-03-05 10:40:22 +03:00
parent fe6f78a4c7
commit a847c1beeb
No known key found for this signature in database
GPG key ID: 5A52F75A8679EC57

View file

@ -4343,6 +4343,7 @@ void EditorHelpBit::_meta_clicked(const String &p_select) {
OS::get_singleton()->shell_open(p_select);
} else if (p_select.begins_with("^")) { // Copy button.
DisplayServer::get_singleton()->clipboard_set(p_select.substr(1));
EditorToaster::get_singleton()->popup_str(TTR("Code snippet copied to clipboard."), EditorToaster::SEVERITY_INFO);
}
}