Skip to content

Commit 6f5b626

Browse files
committed
Fix bug with opening multiple folders in new tab at once
1 parent 893611f commit 6f5b626

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Files UWP/PhotoAlbum.xaml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ public PhotoAlbum()
6262
InstanceTabsView instanceTabsView = rootFrame.Content as InstanceTabsView;
6363
instanceTabsView.TabStrip_SelectionChanged(null, null);
6464
tabInstance = App.selectedTabInstance;
65+
if (tabInstance.instanceViewModel == null && tabInstance.instanceInteraction == null)
66+
{
67+
tabInstance.instanceViewModel = new ItemViewModel();
68+
tabInstance.instanceInteraction = new Interaction();
69+
}
6570
viewModelInstance = tabInstance.instanceViewModel;
6671
FileList.DoubleTapped += tabInstance.instanceInteraction.List_ItemClick;
6772
SidebarPinItem.Click += tabInstance.instanceInteraction.PinItem_Click;

0 commit comments

Comments
 (0)