Skip to content

Commit 5523fcf

Browse files
committed
Ensure leading slashes are only appended to first path segment when needed
1 parent 013b604 commit 5523fcf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Files/Filesystem/ItemViewModel.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,10 @@ private void Universal_PropertyChanged(object sender, System.ComponentModel.Prop
310310
{
311311
tag = tag + part + @"\";
312312
}
313-
314-
tag = "\\\\" + tag;
313+
if(index == 0)
314+
{
315+
tag = "\\\\" + tag;
316+
}
315317

316318
PathBoxItem item = new PathBoxItem()
317319
{

0 commit comments

Comments
 (0)