summaryrefslogtreecommitdiffstats
path: root/editor/plugins/asset_library_editor_plugin.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-11-26 15:31:08 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-11-26 15:31:48 -0300
commitc6f2db393e8d939dc0378826513ca09943660f31 (patch)
tree7e7fd9551842344243053373c80771a9df9bec6b /editor/plugins/asset_library_editor_plugin.cpp
parent22415e5a3168b3dee3cf95d0697ca548bf04d8bf (diff)
downloadredot-engine-c6f2db393e8d939dc0378826513ca09943660f31.tar.gz
Ask users to explore official projects when none is loaded.
Diffstat (limited to 'editor/plugins/asset_library_editor_plugin.cpp')
-rw-r--r--editor/plugins/asset_library_editor_plugin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/plugins/asset_library_editor_plugin.cpp b/editor/plugins/asset_library_editor_plugin.cpp
index b63352389e..eee54f3cd2 100644
--- a/editor/plugins/asset_library_editor_plugin.cpp
+++ b/editor/plugins/asset_library_editor_plugin.cpp
@@ -1268,6 +1268,10 @@ void EditorAssetLibrary::_install_external_asset(String p_zip_path, String p_tit
emit_signal("install_asset", p_zip_path, p_title);
}
+void EditorAssetLibrary::disable_community_support() {
+ support->get_popup()->set_item_checked(SUPPORT_COMMUNITY, false);
+}
+
void EditorAssetLibrary::_bind_methods() {
ClassDB::bind_method("_http_request_completed", &EditorAssetLibrary::_http_request_completed);