새 프로젝트 생성 에러 수정

This commit is contained in:
정영민
2025-06-27 12:40:46 +09:00
parent a07de37142
commit 958e9d1fec
2 changed files with 6 additions and 0 deletions

View File

@@ -37,6 +37,9 @@ namespace Studio.UI
{ {
var paths = StandaloneFileBrowser.OpenFolderPanel("Select Folder", "", false); var paths = StandaloneFileBrowser.OpenFolderPanel("Select Folder", "", false);
if (paths == null)
return;
if (paths.Count > 0 && !string.IsNullOrEmpty(paths[0].Name)) if (paths.Count > 0 && !string.IsNullOrEmpty(paths[0].Name))
{ {
var path = Path.GetDirectoryName(paths[0].Name); var path = Path.GetDirectoryName(paths[0].Name);

View File

@@ -32,6 +32,9 @@ namespace Studio.UI
{ {
var paths = StandaloneFileBrowser.OpenFolderPanel("Select Folder", "", false); var paths = StandaloneFileBrowser.OpenFolderPanel("Select Folder", "", false);
if (paths == null)
return;
if (paths.Count > 0 && !string.IsNullOrEmpty(paths[0].Name)) if (paths.Count > 0 && !string.IsNullOrEmpty(paths[0].Name))
{ {
var path = Path.GetDirectoryName(paths[0].Name); var path = Path.GetDirectoryName(paths[0].Name);