#81 Apply default ZoomAnchor config to existing views on refresh.
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user