File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1536,7 +1536,9 @@ string determineBrowseDir()
1536
1536
Dictionary < string , int > subDirs = new Dictionary < string , int > ( ) ;
1537
1537
foreach ( var folder in Settings . Folders . Folders )
1538
1538
{
1539
- string subDir = Directory . GetParent ( folder . Value ) . ToString ( ) ;
1539
+ var parentDir = Directory . GetParent ( folder . Value ) ;
1540
+ if ( parentDir == null ) { continue ; } // ignore content in top-level dir
1541
+ string subDir = parentDir . ToString ( ) ;
1540
1542
if ( subDirs . ContainsKey ( subDir ) )
1541
1543
{
1542
1544
subDirs [ subDir ] += 1 ;
@@ -1556,16 +1558,16 @@ string determineBrowseDir()
1556
1558
}
1557
1559
}
1558
1560
1559
- string brouwseDir = "" ;
1561
+ string browseDir = "" ;
1560
1562
foreach ( var subDir in subDirs )
1561
1563
{
1562
1564
if ( subDir . Value == max )
1563
1565
{
1564
- brouwseDir = subDir . Key ;
1566
+ browseDir = subDir . Key ;
1565
1567
}
1566
1568
}
1567
1569
1568
- return brouwseDir ;
1570
+ return browseDir ;
1569
1571
}
1570
1572
1571
1573
#endregion
You can’t perform that action at this time.
0 commit comments