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