Skip to content

Commit

Permalink
bug捏
Browse files Browse the repository at this point in the history
  • Loading branch information
Waheal committed Jul 26, 2024
1 parent 3227245 commit 104b259
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MSL/forms/DownloadMods.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs
modUrls.Clear();
imageUrls.Clear();
backList.Clear();
listBox.Items.Clear();
listBox.ItemsSource = null;
//GC.Collect();
//listBox.Items.Clear();
}

private void Modrinth_Click(object sender, RoutedEventArgs e)
Expand Down
4 changes: 4 additions & 0 deletions MSL/pages/ServerList.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ await Dispatcher.InvokeAsync(async () =>

private void serverList_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{
if (serverList.SelectedIndex == -1)
{
return;
}
StartServerEvent();
}

Expand Down

0 comments on commit 104b259

Please sign in to comment.