'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)
|
||||
{
|
||||
// View is always available because this method is actually being called by
|
||||
// a view callback
|
||||
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();
|
||||
}
|
||||
|
@@ -116,8 +116,7 @@ namespace EveOPreview.View
|
||||
this._isSizeChanged = true;
|
||||
this._isOverlayVisible = false;
|
||||
|
||||
// Thumbnail will be properly registered during the Manager's Refresh cycle
|
||||
this.Refresh();
|
||||
this.Refresh(true);
|
||||
|
||||
this.IsActive = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user