UWP: clear console when navigating pages.

This commit is contained in:
Josh Matthews 2020-06-18 00:02:44 -04:00
parent bd8c7d6f4d
commit c7f5d8a266
4 changed files with 10 additions and 1 deletions

View file

@ -273,6 +273,11 @@ void BrowserPage::OnPrefererenceSearchboxEdited(
}
}
void BrowserPage::ClearConsole() {
Dispatcher().RunAsync(CoreDispatcherPriority::Low,
[=] { DevtoolsConsoleOutput().Blocks().Clear(); });
}
void BrowserPage::OnDevtoolsMessage(DevtoolsMessageLevel level, hstring source,
hstring body) {
Dispatcher().RunAsync(CoreDispatcherPriority::Low, [=] {