Port N00BS to linux

This commit is contained in:
Li 2022-07-25 19:16:21 +12:00
parent 64fed1c6c4
commit 8297c56f21
181 changed files with 282 additions and 132 deletions

11
HorseIsleServer/MPN00BS/ServerSelection.axaml.cs Normal file → Executable file
View file

@ -2,6 +2,8 @@ using Avalonia;
using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Markup.Xaml;
using Avalonia.Threading;
using System;
namespace MPN00BS
@ -11,9 +13,6 @@ namespace MPN00BS
public ServerSelection()
{
InitializeComponent();
#if DEBUG
this.AttachDevTools();
#endif
}
private void InitializeComponent()
@ -31,7 +30,11 @@ namespace MPN00BS
private void OnClientExit()
{
this.Close();
Dispatcher.UIThread.InvokeAsync(() =>
{
ServerStarter.ShutdownHTTPServer();
this.Close();
});
}
}
}