File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -257,8 +257,7 @@ public SidebarViewModel()
257
257
258
258
private async void CreateItemHome ( )
259
259
{
260
- var home = await GetOrCreateSection ( SectionType . Home ) ;
261
- SideBarItems . Add ( home ) ;
260
+ await CreateSection ( SectionType . Home ) ;
262
261
}
263
262
264
263
private async void Manager_DataChanged ( object sender , NotifyCollectionChangedEventArgs e )
@@ -446,7 +445,7 @@ private async Task<LocationItem> CreateSection(SectionType sectionType)
446
445
}
447
446
case SectionType . Network :
448
447
{
449
- if ( ShowNetworkDrivesSection )
448
+ if ( ! ShowNetworkDrivesSection )
450
449
{
451
450
break ;
452
451
}
@@ -466,7 +465,7 @@ private async Task<LocationItem> CreateSection(SectionType sectionType)
466
465
}
467
466
case SectionType . FileTag :
468
467
{
469
- if ( ShowFileTagsSection )
468
+ if ( ! ShowFileTagsSection )
470
469
{
471
470
break ;
472
471
}
You can’t perform that action at this time.
0 commit comments