#81 Apply default ZoomAnchor config to existing views on refresh.

This commit is contained in:
Izakbar
2025-04-24 19:12:19 +01:00
parent 3ec0bf471f
commit 6188d00865

View File

@@ -444,11 +444,16 @@ namespace EveOPreview.Services
}
}
// Hide, show, resize and move
// Hide, show, resize and move - update ZoomAnchor setting
foreach (KeyValuePair<IntPtr, IThumbnailView> entry in this._thumbnailViews)
{
IThumbnailView view = entry.Value;
// update ZoomAnchor regardless
view.ClientZoomAnchor = this._configuration.GetZoomAnchor(view.Title, this._configuration.ThumbnailZoomAnchor);
if (hideAllThumbnails || this._configuration.IsThumbnailDisabled(view.Title))
{
if (view.IsActive)
@@ -834,8 +839,6 @@ namespace EveOPreview.Services
{
this._windowManager.MoveWindow(clientHandle, clientLayout.X, clientLayout.Y, clientLayout.Width, clientLayout.Height);
}
view.ClientZoomAnchor = this._configuration.GetZoomAnchor(clientTitle, this._configuration.ThumbnailZoomAnchor);
}
private void UpdateClientLayouts()