Fix TTR misuse
This commit is contained in:
parent
3f1fc5af7a
commit
280d4e2965
7 changed files with 43 additions and 43 deletions
|
|
@ -603,7 +603,7 @@ void ScriptCreateDialog::_path_entered(const String &p_path) {
|
|||
}
|
||||
|
||||
void ScriptCreateDialog::_msg_script_valid(bool valid, const String &p_msg) {
|
||||
error_label->set_text("- " + TTR(p_msg));
|
||||
error_label->set_text("- " + p_msg);
|
||||
if (valid) {
|
||||
error_label->add_theme_color_override("font_color", gc->get_theme_color("success_color", "Editor"));
|
||||
} else {
|
||||
|
|
@ -612,7 +612,7 @@ void ScriptCreateDialog::_msg_script_valid(bool valid, const String &p_msg) {
|
|||
}
|
||||
|
||||
void ScriptCreateDialog::_msg_path_valid(bool valid, const String &p_msg) {
|
||||
path_error_label->set_text("- " + TTR(p_msg));
|
||||
path_error_label->set_text("- " + p_msg);
|
||||
if (valid) {
|
||||
path_error_label->add_theme_color_override("font_color", gc->get_theme_color("success_color", "Editor"));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue