mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 10:44:26 +00:00
Use a different icon for the debugger tab with both warnings and errors
This makes it possible to see if both errors and warnings were pushed without having to open the tab.
This commit is contained in:
parent
1c6b1838b9
commit
564f8ccc13
3 changed files with 11 additions and 6 deletions
|
|
@ -130,10 +130,12 @@ void ScriptEditorDebugger::update_tabs() {
|
|||
tabs->set_tab_icon(errors_tab->get_index(), Ref<Texture2D>());
|
||||
} else {
|
||||
errors_tab->set_name(TTR("Errors") + " (" + itos(error_count + warning_count) + ")");
|
||||
if (error_count == 0) {
|
||||
tabs->set_tab_icon(errors_tab->get_index(), get_theme_icon("Warning", "EditorIcons"));
|
||||
} else {
|
||||
if (error_count >= 1 && warning_count >= 1) {
|
||||
tabs->set_tab_icon(errors_tab->get_index(), get_theme_icon("ErrorWarning", "EditorIcons"));
|
||||
} else if (error_count >= 1) {
|
||||
tabs->set_tab_icon(errors_tab->get_index(), get_theme_icon("Error", "EditorIcons"));
|
||||
} else {
|
||||
tabs->set_tab_icon(errors_tab->get_index(), get_theme_icon("Warning", "EditorIcons"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue