I had a problem where the sidebar would get into an infinite loop of reloading/flickering when using the reserve space setting because every reload would trigger a new ABN_POSCHANGED message which would trigger another reload...
After every reload/repositioning I save the current work area. We can ignore all ABN_POSCHANGED messages unless the work area changes.
This PR also prevents unnecessary reloads when clicking on the edge of an unlocked taskbar.
The async delays in SetAppBar and BindAppBar (Windows.cs) might now be obsolete but I wasn't 100% sure. Removing them worked on my machine.
I had a problem where the sidebar would get into an infinite loop of reloading/flickering when using the reserve space setting because every reload would trigger a new ABN_POSCHANGED message which would trigger another reload...
After every reload/repositioning I save the current work area. We can ignore all ABN_POSCHANGED messages unless the work area changes.
This PR also prevents unnecessary reloads when clicking on the edge of an unlocked taskbar.
The async delays in
SetAppBar
andBindAppBar
(Windows.cs
) might now be obsolete but I wasn't 100% sure. Removing them worked on my machine.