mirror of
https://github.com/Stone-Red-Code/Markdowser.git
synced 2026-09-08 23:41:29 +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;
|
GlobalState.CurrentTabState = CurrentTabState;
|
||||||
CurrentTabState.UrlChanged += UrlChanged;
|
CurrentTabState.UrlChanged += UrlChanged;
|
||||||
|
|
||||||
|
if (CurrentTabState.Content is null)
|
||||||
|
{
|
||||||
FetchUrl(true);
|
FetchUrl(true);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Content = CurrentTabState.Content;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public TabState CurrentTabState
|
public TabState CurrentTabState
|
||||||
|
|||||||
Reference in New Issue
Block a user