mirror of
https://github.com/Stone-Red-Code/Markdowser.git
synced 2026-09-04 09:06:15 +02:00
Restore Content from TabState when switching tabs
This commit is contained in:
@@ -52,8 +52,15 @@ public partial class MainWindowViewModel : ViewModelBase
|
||||
GlobalState.CurrentTabState = CurrentTabState;
|
||||
CurrentTabState.UrlChanged += UrlChanged;
|
||||
|
||||
if (CurrentTabState.Content is null)
|
||||
{
|
||||
FetchUrl(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
Content = CurrentTabState.Content;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public TabState CurrentTabState
|
||||
|
||||
Reference in New Issue
Block a user