Skip to content

Commit ab9f03a

Browse files
committed
Fix PathBox items not updating on Navigation
1 parent 2130b2d commit ab9f03a

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

Files/Navigation/UniversalPath.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class UniversalPath : INotifyPropertyChanged
77
{
88

99

10-
public string _path;
10+
private string _path;
1111
public string path
1212
{
1313
get
@@ -17,11 +17,8 @@ public string path
1717

1818
set
1919
{
20-
if (value != _path)
21-
{
22-
_path = value;
23-
NotifyPropertyChanged("path");
24-
}
20+
_path = value;
21+
NotifyPropertyChanged("path");
2522
}
2623
}
2724
public event PropertyChangedEventHandler PropertyChanged;

Files/NavigationActions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public static void Forward_Click(object sender, RoutedEventArgs e)
4242
if (instanceContentFrame.CanGoForward)
4343
{
4444
App.OccupiedInstance.instanceViewModel.CancelLoadAndClearFiles();
45-
var previousSourcePageType = instanceContentFrame.ForwardStack[instanceContentFrame.ForwardStack.Count - 1].SourcePageType;
45+
var incomingSourcePageType = instanceContentFrame.ForwardStack[instanceContentFrame.ForwardStack.Count - 1].SourcePageType;
4646
var Parameter = instanceContentFrame.ForwardStack[instanceContentFrame.ForwardStack.Count - 1].Parameter;
47-
SelectSidebarItemFromPath(Parameter.ToString(), previousSourcePageType);
48-
47+
SelectSidebarItemFromPath(Parameter.ToString(), incomingSourcePageType);
48+
App.OccupiedInstance.instanceViewModel.Universal.path = Parameter.ToString();
4949
instanceContentFrame.GoForward();
5050
}
5151
}

0 commit comments

Comments
 (0)