-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Save tab list on path change #14874
Conversation
17498b7
to
c6415f7
Compare
@@ -167,6 +167,9 @@ public async void TabItemContent_ContentChanged(object? sender, CustomTabViewIte | |||
LoadPaneChanged(); | |||
UpdateNavToolbarProperties(); | |||
await NavigationHelpers.UpdateInstancePropertiesAsync(paneArgs); | |||
|
|||
// Save the updated tab list | |||
AppLifecycleHelper.SaveSessionTabs(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some time this code runs twice when a second pane is added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be avoided by modifying PangeHolderPage.IsRightPaneVisible
setter as follows:
set
{
if (value != _IsRightPaneVisible)
{
_IsRightPaneVisible = value;
if (!_IsRightPaneVisible)
{
ActivePane = PaneLeft;
Pane_ContentChanged(null, null);
}
NotifyPropertyChanged(nameof(IsRightPaneVisible));
NotifyPropertyChanged(nameof(IsMultiPaneActive));
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I pushed a commit with this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Follow up for #14857