Enable `restart_if_changed` for the touchscreen editor settings
The alternative was to regenerate the theme which caused the Android Editor to freeze while the regeneration was ongoing.
This commit is contained in:
parent
97b8ad1af0
commit
8f7dc86223
|
@ -526,11 +526,13 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
||||||
// Touchscreen
|
// Touchscreen
|
||||||
bool has_touchscreen_ui = DisplayServer::get_singleton()->is_touchscreen_available();
|
bool has_touchscreen_ui = DisplayServer::get_singleton()->is_touchscreen_available();
|
||||||
EDITOR_SETTING(Variant::BOOL, PROPERTY_HINT_NONE, "interface/touchscreen/increase_scrollbar_touch_area", has_touchscreen_ui, "")
|
EDITOR_SETTING(Variant::BOOL, PROPERTY_HINT_NONE, "interface/touchscreen/increase_scrollbar_touch_area", has_touchscreen_ui, "")
|
||||||
|
set_restart_if_changed("interface/touchscreen/increase_scrollbar_touch_area", true);
|
||||||
EDITOR_SETTING(Variant::BOOL, PROPERTY_HINT_NONE, "interface/touchscreen/enable_long_press_as_right_click", has_touchscreen_ui, "")
|
EDITOR_SETTING(Variant::BOOL, PROPERTY_HINT_NONE, "interface/touchscreen/enable_long_press_as_right_click", has_touchscreen_ui, "")
|
||||||
set_restart_if_changed("interface/touchscreen/enable_long_press_as_right_click", true);
|
set_restart_if_changed("interface/touchscreen/enable_long_press_as_right_click", true);
|
||||||
EDITOR_SETTING(Variant::BOOL, PROPERTY_HINT_NONE, "interface/touchscreen/enable_pan_and_scale_gestures", has_touchscreen_ui, "")
|
EDITOR_SETTING(Variant::BOOL, PROPERTY_HINT_NONE, "interface/touchscreen/enable_pan_and_scale_gestures", has_touchscreen_ui, "")
|
||||||
set_restart_if_changed("interface/touchscreen/enable_pan_and_scale_gestures", true);
|
set_restart_if_changed("interface/touchscreen/enable_pan_and_scale_gestures", true);
|
||||||
EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "interface/touchscreen/scale_gizmo_handles", has_touchscreen_ui ? 3 : 1, "1,5,1")
|
EDITOR_SETTING(Variant::FLOAT, PROPERTY_HINT_RANGE, "interface/touchscreen/scale_gizmo_handles", has_touchscreen_ui ? 3 : 1, "1,5,1")
|
||||||
|
set_restart_if_changed("interface/touchscreen/scale_gizmo_handles", true);
|
||||||
|
|
||||||
// Scene tabs
|
// Scene tabs
|
||||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "interface/scene_tabs/display_close_button", 1, "Never,If Tab Active,Always"); // TabBar::CloseButtonDisplayPolicy
|
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "interface/scene_tabs/display_close_button", 1, "Never,If Tab Active,Always"); // TabBar::CloseButtonDisplayPolicy
|
||||||
|
|
|
@ -118,12 +118,6 @@ void CurveEdit::_notification(int p_what) {
|
||||||
queue_redraw();
|
queue_redraw();
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
|
|
||||||
if (!EditorSettings::get_singleton()->check_changed_settings_in_group("interface/touchscreen")) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
[[fallthrough]];
|
|
||||||
}
|
|
||||||
case NOTIFICATION_THEME_CHANGED: {
|
case NOTIFICATION_THEME_CHANGED: {
|
||||||
float gizmo_scale = EDITOR_GET("interface/touchscreen/scale_gizmo_handles");
|
float gizmo_scale = EDITOR_GET("interface/touchscreen/scale_gizmo_handles");
|
||||||
point_radius = Math::round(BASE_POINT_RADIUS * get_theme_default_base_scale() * gizmo_scale);
|
point_radius = Math::round(BASE_POINT_RADIUS * get_theme_default_base_scale() * gizmo_scale);
|
||||||
|
|
|
@ -2652,8 +2652,6 @@ bool EditorThemeManager::is_generated_theme_outdated() {
|
||||||
EditorSettings::get_singleton()->check_changed_settings_in_group("interface/editor/font") ||
|
EditorSettings::get_singleton()->check_changed_settings_in_group("interface/editor/font") ||
|
||||||
EditorSettings::get_singleton()->check_changed_settings_in_group("interface/editor/main_font") ||
|
EditorSettings::get_singleton()->check_changed_settings_in_group("interface/editor/main_font") ||
|
||||||
EditorSettings::get_singleton()->check_changed_settings_in_group("interface/editor/code_font") ||
|
EditorSettings::get_singleton()->check_changed_settings_in_group("interface/editor/code_font") ||
|
||||||
EditorSettings::get_singleton()->check_changed_settings_in_group("interface/touchscreen/increase_scrollbar_touch_area") ||
|
|
||||||
EditorSettings::get_singleton()->check_changed_settings_in_group("interface/touchscreen/scale_gizmo_handles") ||
|
|
||||||
EditorSettings::get_singleton()->check_changed_settings_in_group("editors/visual_editors") ||
|
EditorSettings::get_singleton()->check_changed_settings_in_group("editors/visual_editors") ||
|
||||||
EditorSettings::get_singleton()->check_changed_settings_in_group("text_editor/theme") ||
|
EditorSettings::get_singleton()->check_changed_settings_in_group("text_editor/theme") ||
|
||||||
EditorSettings::get_singleton()->check_changed_settings_in_group("text_editor/help/help") ||
|
EditorSettings::get_singleton()->check_changed_settings_in_group("text_editor/help/help") ||
|
||||||
|
|
Loading…
Reference in New Issue