Skip to content

Commit c4e0f04

Browse files
authored
Fixed self reference loop (#1190)
Fixed NullReferenceException
1 parent 06ebe6c commit c4e0f04

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Files/DataModels/SidebarPinnedModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ namespace Files.DataModels
1212
{
1313
public class SidebarPinnedModel
1414
{
15+
[JsonIgnore]
1516
public SettingsViewModel AppSettings => App.AppSettings;
1617

1718
public static readonly string JsonFileName = "PinnedItems.json";

Files/Views/InstanceTabsView.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public InstanceTabsView()
3838
CoreTitleBar.ExtendViewIntoTitleBar = true;
3939
tabView = TabStrip;
4040

41-
App.SidebarPinned = new SidebarPinnedModel();
4241
App.AppSettings = new SettingsViewModel();
42+
App.SidebarPinned = new SidebarPinnedModel();
4343
App.InteractionViewModel = new InteractionViewModel();
4444

4545
// Turn on Navigation Cache

0 commit comments

Comments
 (0)