Skip to content

Commit 9d1a80c

Browse files
committed
#36: Move curRoot increment to bottom of block
1 parent 9aafb88 commit 9d1a80c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ZeroMunge/Forms/EasyFilePicker.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ private void Prompt_AddProject()
105105
{
106106
string path = openDlg_AddProjectPrompt.FileName;
107107
rootPaths.Add(curRoot, path);
108-
curRoot++;
109108

110109
// Get the project ID
111110
string projectID = Utilities.GetProjectID(path);
@@ -139,6 +138,8 @@ private void Prompt_AddProject()
139138

140139
tv_Files.EndUpdate();
141140
tv_Files.ExpandAll();
141+
142+
curRoot++;
142143
}
143144
}
144145

0 commit comments

Comments
 (0)