From aa1102fc536bd7b3a2cff703d79713c454af7e6c Mon Sep 17 00:00:00 2001 From: trollodel <33117082+trollodel@users.noreply.github.com> Date: Wed, 17 Nov 2021 21:08:55 +0100 Subject: Store panels and docks singletons in their own classes --- editor/filesystem_dock.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'editor/filesystem_dock.h') diff --git a/editor/filesystem_dock.h b/editor/filesystem_dock.h index 8d50f05da9..1dc986dcb2 100644 --- a/editor/filesystem_dock.h +++ b/editor/filesystem_dock.h @@ -304,6 +304,12 @@ private: void _feature_profile_changed(); Vector _remove_self_included_paths(Vector selected_strings); +private: + static FileSystemDock *singleton; + +public: + static FileSystemDock *get_singleton() { return singleton; } + protected: void _notification(int p_what); static void _bind_methods(); -- cgit v1.2.3