diff options
author | Michael Alexsander <michaelalexsander@protonmail.com> | 2021-05-28 20:58:03 -0300 |
---|---|---|
committer | Michael Alexsander <michaelalexsander@protonmail.com> | 2021-05-28 21:04:38 -0300 |
commit | 38e635bb1d72b66b75a2a3da60978da8bb121019 (patch) | |
tree | 4ce9687e044e94c6e8585d7b3cb503e826239d51 /editor/editor_node.cpp | |
parent | 364ea7f280a3f074795e542b16b1d0ec76cf6ce2 (diff) |
Remove `dim_editor_on_dialog_popup` from editor settings
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 72963012d6..70db6fdf91 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -2892,7 +2892,7 @@ void EditorNode::_exit_editor() { _save_docks(); // Dim the editor window while it's quitting to make it clearer that it's busy - dim_editor(true, true); + dim_editor(true); get_tree()->quit(); } @@ -5396,15 +5396,9 @@ void EditorNode::_open_imported() { load_scene(open_import_request, true, false, true, true); } -void EditorNode::dim_editor(bool p_dimming, bool p_force_dim) { - // Dimming can be forced regardless of the editor setting, which is useful when quitting the editor. - if ((p_force_dim || EditorSettings::get_singleton()->get("interface/editor/dim_editor_on_dialog_popup")) && p_dimming) { - dimmed = true; - gui_base->set_modulate(Color(0.5, 0.5, 0.5)); - } else { - dimmed = false; - gui_base->set_modulate(Color(1, 1, 1)); - } +void EditorNode::dim_editor(bool p_dimming) { + dimmed = p_dimming; + gui_base->set_modulate(p_dimming ? Color(0.5, 0.5, 0.5) : Color(1, 1, 1)); } bool EditorNode::is_editor_dimmed() const { |