|
@@ -610,7 +610,7 @@ void EditorNode::_notification(int p_what) {
|
|
|
update_spinner_step_frame = frame + 1;
|
|
|
|
|
|
// Update the icon itself only when the spinner is visible.
|
|
|
- if (EDITOR_GET("interface/editor/show_update_spinner")) {
|
|
|
+ if (_should_display_update_spinner()) {
|
|
|
update_spinner->set_icon(theme->get_icon("Progress" + itos(update_spinner_step + 1), EditorStringName(EditorIcons)));
|
|
|
}
|
|
|
}
|
|
@@ -798,7 +798,7 @@ void EditorNode::_notification(int p_what) {
|
|
|
}
|
|
|
|
|
|
void EditorNode::_update_update_spinner() {
|
|
|
- update_spinner->set_visible(!RenderingServer::get_singleton()->canvas_item_get_debug_redraw() && EDITOR_GET("interface/editor/show_update_spinner"));
|
|
|
+ update_spinner->set_visible(!RenderingServer::get_singleton()->canvas_item_get_debug_redraw() && _should_display_update_spinner());
|
|
|
|
|
|
const bool update_continuously = EDITOR_GET("interface/editor/update_continuously");
|
|
|
PopupMenu *update_popup = update_spinner->get_popup();
|
|
@@ -2913,7 +2913,7 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
|
|
|
_update_update_spinner();
|
|
|
} break;
|
|
|
case SETTINGS_UPDATE_SPINNER_HIDE: {
|
|
|
- EditorSettings::get_singleton()->set("interface/editor/show_update_spinner", false);
|
|
|
+ EditorSettings::get_singleton()->set("interface/editor/show_update_spinner", 2); // Disabled
|
|
|
_update_update_spinner();
|
|
|
} break;
|
|
|
case SETTINGS_PREFERENCES: {
|
|
@@ -4632,6 +4632,16 @@ String EditorNode::_get_system_info() const {
|
|
|
return String(" - ").join(info);
|
|
|
}
|
|
|
|
|
|
+bool EditorNode::_should_display_update_spinner() const {
|
|
|
+#ifdef DEV_ENABLED
|
|
|
+ const bool in_dev = true;
|
|
|
+#else
|
|
|
+ const bool in_dev = false;
|
|
|
+#endif
|
|
|
+ const int show_update_spinner_setting = EDITOR_GET("interface/editor/show_update_spinner");
|
|
|
+ return (show_update_spinner_setting == 0 && in_dev) || show_update_spinner_setting == 1;
|
|
|
+}
|
|
|
+
|
|
|
Ref<Texture2D> EditorNode::_file_dialog_get_icon(const String &p_path) {
|
|
|
EditorFileSystemDirectory *efsd = EditorFileSystem::get_singleton()->get_filesystem_path(p_path.get_base_dir());
|
|
|
if (efsd) {
|
|
@@ -6476,7 +6486,6 @@ EditorNode::EditorNode() {
|
|
|
register_exporters();
|
|
|
|
|
|
EDITOR_DEF("interface/editor/save_on_focus_loss", false);
|
|
|
- EDITOR_DEF("interface/editor/show_update_spinner", false);
|
|
|
EDITOR_DEF("interface/editor/update_continuously", false);
|
|
|
EDITOR_DEF("interface/editor/localize_settings", true);
|
|
|
EDITOR_DEF_RST("interface/scene_tabs/restore_scenes_on_load", true);
|