mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-12-16 12:09:51 +00:00
Do not calculate height delta when the window is maximized
This commit is contained in:
parent
4505453301
commit
de0a99b699
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user