From 97e991929f8561928913c7fe6413184121414aaa Mon Sep 17 00:00:00 2001 From: stmSi Date: Fri, 16 Dec 2022 22:05:44 +0630 Subject: Fix: Profiler and Visual Profiler start/stop state inconsistency --- editor/debugger/editor_profiler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editor/debugger/editor_profiler.h') diff --git a/editor/debugger/editor_profiler.h b/editor/debugger/editor_profiler.h index e9ecc285ed..d0dd67688b 100644 --- a/editor/debugger/editor_profiler.h +++ b/editor/debugger/editor_profiler.h @@ -122,7 +122,7 @@ private: Timer *frame_delay = nullptr; Timer *plot_delay = nullptr; - void _set_button_text(); + void _update_button_text(); void _update_frame(); void _activate_pressed(); @@ -155,6 +155,7 @@ protected: public: void add_frame_metric(const Metric &p_metric, bool p_final = false); void set_enabled(bool p_enable, bool p_clear = true); + void set_pressed(bool p_pressed); bool is_profiling(); bool is_seeking() { return seeking; } void disable_seeking(); -- cgit v1.2.3