Do not calculate height delta when the window is maximized

merge-requests/194/head
Coxxs 2025-10-27 01:41:16 +08:00
parent 2ff06b2c19
commit 6d7d32db2b
1 changed files with 5 additions and 0 deletions

View File

@ -474,6 +474,11 @@ namespace Ryujinx.Ava.UI.Windows
private void SaveHeightCorrection()
{
if (WindowState != WindowState.Normal)
{
return;
}
// Store the delta between the height we set (ViewModel.WindowHeight) and the actual height returned by Avalonia (Height).
_heightCorrection = Height - ViewModel.WindowHeight;
if (Math.Abs(_heightCorrection) > 50)