浏览代码

Merge pull request #38706 from nathanfranke/fix-rename-sizing

Fix rename dialog size in 3.2
Rémi Verschelde 5 年之前
父节点
当前提交
ee7bde231c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      editor/project_manager.cpp

+ 3 - 0
editor/project_manager.cpp

@@ -786,6 +786,9 @@ public:
 			_test_path();
 		}
 
+		// Reset the dialog to its initial size. Otherwise, the dialog window would be too large
+		// when opening a small dialog after closing a large dialog.
+		set_size(get_minimum_size());
 		popup_centered_minsize(Size2(500, 0) * EDSCALE);
 	}