Ver Fonte

EditorNode: request_attn when behind other windows

The current version requests attention only when minimized
which might not work as expected when it's not minimized
but doesn't have focus.
Poommetee Ketson há 8 anos atrás
pai
commit
7b1e15b88c
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      editor/editor_node.cpp

+ 1 - 2
editor/editor_node.cpp

@@ -2521,8 +2521,7 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
 					}
 				}
 
-				if (OS::get_singleton()->is_window_minimized())
-					OS::get_singleton()->request_attention();
+				OS::get_singleton()->request_attention();
 				break;
 			}