diff --git a/ARAMUtility/View/MainWindow.xaml b/ARAMUtility/View/MainWindow.xaml
index e643a50..cbbc14f 100644
--- a/ARAMUtility/View/MainWindow.xaml
+++ b/ARAMUtility/View/MainWindow.xaml
@@ -3,6 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:local="clr-namespace:ARAMUtility"
xmlns:vm="clr-namespace:ARAMUtility.ViewModel"
mc:Ignorable="d"
Title="{Binding Title}"
@@ -57,13 +58,33 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ARAMUtility/ViewModel/MainViewModel.cs b/ARAMUtility/ViewModel/MainViewModel.cs
index 6a4559b..63599b6 100644
--- a/ARAMUtility/ViewModel/MainViewModel.cs
+++ b/ARAMUtility/ViewModel/MainViewModel.cs
@@ -39,6 +39,8 @@ public partial class MainViewModel : ObservableObject, IDisposable
[ObservableProperty]
public partial string ConnectionStatus { get; private set; } = "Not connected.";
+
+
private Dictionary _allChampions = [];
private List _needChampionIds = [];
private readonly APIClient _client = new();
@@ -49,8 +51,8 @@ public partial class MainViewModel : ObservableObject, IDisposable
public MainViewModel()
{
_lcuWebsocket.Connecting += (_, _) => UpdateConnectionStatus(false, "Connecting ...");
- _lcuWebsocket.Connected += (_, _) => UpdateConnectionStatus(false, "Connected.");
- _lcuWebsocket.Disconnected += (_, _) => UpdateConnectionStatus(true, "Disconnected.");
+ _lcuWebsocket.Connected += (_, _) => UpdateConnectionStatus(false, "Connected");
+ _lcuWebsocket.Disconnected += (_, _) => UpdateConnectionStatus(true, "Reconnect?");
_lcuWebsocket.LcuApiEvent += OnLcuApiEvent;
#if DEBUG
@@ -104,7 +106,6 @@ public partial class MainViewModel : ObservableObject, IDisposable
File.AppendAllText("socket.log", $"{apiEvent.Uri}: {apiEvent.EventType} - {apiEvent.Data?.ToJsonString()}\n");
break;
}
-
}
private async Task UpdateNeedChampionIdsAsync()
diff --git a/LeagueAPI/LcuWebsocket.cs b/LeagueAPI/LcuWebsocket.cs
index 4b6c471..46a7168 100644
--- a/LeagueAPI/LcuWebsocket.cs
+++ b/LeagueAPI/LcuWebsocket.cs
@@ -14,7 +14,6 @@ public class LcuWebsocket : IDisposable
private static readonly IReadOnlyList SUBSCRIBE_EVENTS =
[
"OnJsonApiEvent_lol-champ-select_v1_session",
- "OnJsonApiEvent_lol-matchmaking_v1_search",
"OnJsonApiEvent_lol-matchmaking_v1_ready-check",
];