Switching to a minimized client can hang EVE-O Preview on slow CPU
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Threading;
|
using System.Windows.Threading;
|
||||||
using EveOPreview.Configuration;
|
using EveOPreview.Configuration;
|
||||||
using EveOPreview.Mediator.Messages;
|
using EveOPreview.Mediator.Messages;
|
||||||
@@ -387,11 +388,9 @@ namespace EveOPreview.Services
|
|||||||
// a view callback
|
// a view callback
|
||||||
IThumbnailView view = this._thumbnailViews[id];
|
IThumbnailView view = this._thumbnailViews[id];
|
||||||
|
|
||||||
this._windowManager.ActivateWindow(view.Id);
|
Task.Run(() => this._windowManager.ActivateWindow(view.Id));
|
||||||
this.SwitchActiveClient(view.Id, view.Title);
|
|
||||||
this.UpdateClientLayouts();
|
this.UpdateClientLayouts();
|
||||||
this.RefreshThumbnails();
|
|
||||||
view.Refresh(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ThumbnailDeactivated(IntPtr id)
|
private void ThumbnailDeactivated(IntPtr id)
|
||||||
|
Reference in New Issue
Block a user