Remove logs in Navigation class

This commit is contained in:
2026-01-03 20:48:50 -06:00
parent 2b4ca9436a
commit 4bfa5d3adc

View File

@@ -76,32 +76,17 @@ public partial class Navigation : UserControl
public void PushPage(Page page)
{
Console.WriteLine($"Adding page {page.Title} to the page stack");
_pageStack.Push(page);
RefreshPage();
PrintPageStack();
}
public void PopPage()
{
if (_pageStack.Count == 1) return;
Console.WriteLine($"Removing page {CurrentPage?.Title ?? "??"} from the page stack");
_pageStack.Pop();
RefreshPage();
PrintPageStack();
}
private void PrintPageStack()
{
var i = 0;
foreach (var page in _pageStack)
{
Console.WriteLine($"{i} - {page.Title}");
i++;
}
}
private void RefreshPage()
{
if (_pageContainer == null || CurrentPage is null) return;