140: Saved client location is applied even if the corresponding option is disabled

This commit is contained in:
Anton Kasyanov
2019-02-25 21:52:03 +02:00
parent 9d54613170
commit a4e46c27bd

View File

@@ -397,8 +397,6 @@ namespace EveOPreview.Services
this.UpdateClientLayouts(); this.UpdateClientLayouts();
this.RefreshThumbnails(); this.RefreshThumbnails();
}); });
this.UpdateClientLayouts();
} }
private void ThumbnailDeactivated(IntPtr id) private void ThumbnailDeactivated(IntPtr id)
@@ -562,6 +560,11 @@ namespace EveOPreview.Services
private void ApplyClientLayout(IntPtr clientHandle, string clientTitle) private void ApplyClientLayout(IntPtr clientHandle, string clientTitle)
{ {
if (!this._configuration.EnableClientLayoutTracking)
{
return;
}
ClientLayout clientLayout = this._configuration.GetClientLayout(clientTitle); ClientLayout clientLayout = this._configuration.GetClientLayout(clientTitle);
if (clientLayout == null) if (clientLayout == null)