Optimize theme change in code editor
Postpone applying the whole theme when a setting changes, to avoid updating everything many times when the whole editor theme is changed.
This commit is contained in:
parent
bdcc8741e4
commit
edc858ad82
2 changed files with 15 additions and 0 deletions
|
|
@ -162,7 +162,10 @@ class CodeTextEditor : public VBoxContainer {
|
|||
int error_line;
|
||||
int error_column;
|
||||
|
||||
bool settings_changed = false;
|
||||
|
||||
void _on_settings_change();
|
||||
void _apply_settings_change();
|
||||
|
||||
void _update_text_editor_theme();
|
||||
void _update_font();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue