From 0eea4212ac71902cfdc4a4556e4f7671ce8aba2c Mon Sep 17 00:00:00 2001 From: Sam Johnson Date: Mon, 29 Apr 2024 00:06:17 -0500 Subject: [PATCH] Remove no-longer-needed hack --- RetroBar/Taskbar.xaml.cs | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/RetroBar/Taskbar.xaml.cs b/RetroBar/Taskbar.xaml.cs index 4832e174..1e323469 100644 --- a/RetroBar/Taskbar.xaml.cs +++ b/RetroBar/Taskbar.xaml.cs @@ -267,38 +267,6 @@ private void Settings_PropertyChanged(object sender, PropertyChangedEventArgs e) private void Taskbar_OnLocationChanged(object sender, EventArgs e) { - // primarily for win7/8, they will set up the appbar correctly but then put it in the wrong place - if (Orientation == Orientation.Vertical) - { - double desiredLeft = 0; - - if (AppBarEdge == AppBarEdge.Left) - { - desiredLeft = Screen.Bounds.Left / DpiScale; - } - else if (AppBarEdge == AppBarEdge.Right) - { - desiredLeft = Screen.Bounds.Right / DpiScale - DesiredWidth; - } - - if (Left != desiredLeft) Left = desiredLeft; - } - else - { - double desiredTop = 0; - - if (AppBarEdge == AppBarEdge.Top) - { - desiredTop = Screen.Bounds.Top / DpiScale; - } - else if (AppBarEdge == AppBarEdge.Bottom) - { - desiredTop = Screen.Bounds.Bottom / DpiScale - DesiredHeight; - } - - if (Top != desiredTop) Top = desiredTop; - } - UpdateTrayPosition(); StartButton?.UpdateFloatingStartCoordinates(); }