Disable multi-window buttons instead of hiding them when support is unavailable
This is more explicit as for why this functionality isn't available depending on editor settings and current platform. This also exposes a `EditorInterface.is_multi_window_enabled()` method so that editor plugins can easily query whether the editor is able and expected to create multiple windows.
This commit is contained in:
@ -758,6 +758,8 @@ public:
|
||||
|
||||
bool is_resource_read_only(Ref<Resource> p_resource, bool p_foreign_resources_are_writable = false);
|
||||
|
||||
String get_multiwindow_support_tooltip_text() const;
|
||||
|
||||
bool is_changing_scene() const;
|
||||
|
||||
VBoxContainer *get_main_screen_control();
|
||||
@ -807,6 +809,7 @@ public:
|
||||
List<AdditiveNodeEntry> &p_addition_list);
|
||||
|
||||
bool is_scene_open(const String &p_path);
|
||||
bool is_multi_window_enabled() const;
|
||||
|
||||
void setup_color_picker(ColorPicker *p_picker);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user