private void Notify(string type, string title, string message)
{
var isActive = DispatcherHelper.UIDispatcher.Invoke(() => Application.Current.MainWindow.IsActive);
if (this.IsEnabled && (!isActive || !this.IsNotifyOnlyWhenInactive))
this.plugin.InvokeNotifyRequested(new NotifyEventArgs(type, $"{title} ({BattleData.Current.BattleResult})", message)
{
Activated = () =>
{
DispatcherHelper.UIDispatcher.Invoke(() =>
{
var window = Application.Current.MainWindow;
if (window.WindowState == WindowState.Minimized)
window.WindowState = WindowState.Normal;
window.Activate();
});
},
});
}