浏览代码

Fix empty Command Palette

kobewi 8 月之前
父节点
当前提交
0c446e0620
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      editor/editor_command_palette.cpp

+ 1 - 0
editor/editor_command_palette.cpp

@@ -207,6 +207,7 @@ void EditorCommandPalette::open_popup() {
 	if (was_showed) {
 		popup(prev_rect);
 	} else {
+		_update_command_search(String());
 		popup_centered_clamped(Size2(600, 440) * EDSCALE, 0.8f);
 	}