Restore Content from TabState when switching tabs

This commit is contained in:
Stone_Red
2024-06-04 16:26:11 +02:00
parent 27244ba2a3
commit e943ed0bd7
@@ -52,7 +52,14 @@ public partial class MainWindowViewModel : ViewModelBase
GlobalState.CurrentTabState = CurrentTabState;
CurrentTabState.UrlChanged += UrlChanged;
FetchUrl(true);
if (CurrentTabState.Content is null)
{
FetchUrl(true);
}
else
{
Content = CurrentTabState.Content;
}
}
}