翻页改

This commit is contained in:
末城via 2023-12-25 14:34:14 +08:00
parent 4c0d985854
commit 2df93ad813

View File

@ -415,7 +415,7 @@ namespace VPet_Simulator.Windows
if(e.Key == Key.Enter
&& int.TryParse(TbPage.Text?.Trim(), out int page))
{
pagination.CurrentPage = Math.Min(0, Math.Max(pagination.MaxPage, page));
pagination.CurrentPage = Math.Max(0, Math.Min(pagination.MaxPage, page));
}
}
}