mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-22 20:55:52 +12:00
Port N00BS to linux
This commit is contained in:
parent
64fed1c6c4
commit
8297c56f21
181 changed files with 282 additions and 132 deletions
11
HorseIsleServer/MPN00BS/ServerSelection.axaml.cs
Normal file → Executable file
11
HorseIsleServer/MPN00BS/ServerSelection.axaml.cs
Normal file → Executable 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();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue