summaryrefslogtreecommitdiffstats
path: root/editor/editor_log.h
diff options
context:
space:
mode:
authorSofox <sofoxx@gmail.com>2023-11-20 12:06:54 +0000
committerSofox <sofoxx@gmail.com>2024-05-02 13:28:59 +0100
commitb823724e007bc3f505369b7d768373bbb8f503e6 (patch)
tree10b63f05df5e1119cff6629c250e24cb78dc0f2d /editor/editor_log.h
parent06d105e268ace265809ae3fac2f17ccea9ff88dd (diff)
downloadredot-engine-b823724e007bc3f505369b7d768373bbb8f503e6.tar.gz
Add line limit to Editor Output Log
Diffstat (limited to 'editor/editor_log.h')
-rw-r--r--editor/editor_log.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/editor_log.h b/editor/editor_log.h
index 601e63b9fe..7012a2a43c 100644
--- a/editor/editor_log.h
+++ b/editor/editor_log.h
@@ -128,6 +128,8 @@ private:
}
};
+ int line_limit = 10000;
+
Vector<LogMessage> messages;
// Maps MessageTypes to LogFilters for convenient access and storage (don't need 1 member per filter).
HashMap<MessageType, LogFilter *> type_filter_map;
@@ -164,6 +166,7 @@ private:
void _rebuild_log();
void _add_log_line(LogMessage &p_message, bool p_replace_previous = false);
+ bool _check_display_message(LogMessage &p_message);
void _set_filter_active(bool p_active, MessageType p_message_type);
void _set_search_visible(bool p_visible);
@@ -179,6 +182,7 @@ private:
void _load_state();
void _update_theme();
+ void _editor_settings_changed();
protected:
void _notification(int p_what);