'Active Client Highlight' frame is displayed with noticeable delay
This commit is contained in:
@@ -383,11 +383,20 @@ namespace EveOPreview.Services
|
|||||||
|
|
||||||
private void ThumbnailActivated(IntPtr id)
|
private void ThumbnailActivated(IntPtr id)
|
||||||
{
|
{
|
||||||
// View is always available because this method is actually being called by
|
|
||||||
// a view callback
|
|
||||||
IThumbnailView view = this._thumbnailViews[id];
|
IThumbnailView view = this._thumbnailViews[id];
|
||||||
|
|
||||||
Task.Run(() => this._windowManager.ActivateWindow(view.Id));
|
Task.Run(() =>
|
||||||
|
{
|
||||||
|
this._windowManager.ActivateWindow(view.Id);
|
||||||
|
})
|
||||||
|
.ConfigureAwait(true)
|
||||||
|
.GetAwaiter()
|
||||||
|
.OnCompleted(() =>
|
||||||
|
{
|
||||||
|
this.SwitchActiveClient(view.Id, view.Title);
|
||||||
|
this.UpdateClientLayouts();
|
||||||
|
this.RefreshThumbnails();
|
||||||
|
});
|
||||||
|
|
||||||
this.UpdateClientLayouts();
|
this.UpdateClientLayouts();
|
||||||
}
|
}
|
||||||
|
@@ -116,8 +116,7 @@ namespace EveOPreview.View
|
|||||||
this._isSizeChanged = true;
|
this._isSizeChanged = true;
|
||||||
this._isOverlayVisible = false;
|
this._isOverlayVisible = false;
|
||||||
|
|
||||||
// Thumbnail will be properly registered during the Manager's Refresh cycle
|
this.Refresh(true);
|
||||||
this.Refresh();
|
|
||||||
|
|
||||||
this.IsActive = true;
|
this.IsActive = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user