mirror of https://github.com/quasar/Quasar.git
Fixed blocking MessageBox
This commit is contained in:
parent
0b2b91c376
commit
42803078be
|
@ -470,7 +470,13 @@ namespace xClient.Core.Commands
|
||||||
|
|
||||||
public static void HandleShowMessageBox(Packets.ServerPackets.ShowMessageBox command, Client client)
|
public static void HandleShowMessageBox(Packets.ServerPackets.ShowMessageBox command, Client client)
|
||||||
{
|
{
|
||||||
MessageBox.Show(null, command.Text, command.Caption, (MessageBoxButtons)Enum.Parse(typeof(MessageBoxButtons), command.MessageboxButton), (MessageBoxIcon)Enum.Parse(typeof(MessageBoxIcon), command.MessageboxIcon));
|
new Thread(() =>
|
||||||
|
{
|
||||||
|
MessageBox.Show(null, command.Text, command.Caption,
|
||||||
|
(MessageBoxButtons)Enum.Parse(typeof(MessageBoxButtons), command.MessageboxButton),
|
||||||
|
(MessageBoxIcon)Enum.Parse(typeof(MessageBoxIcon), command.MessageboxIcon));
|
||||||
|
}).Start();
|
||||||
|
|
||||||
new Packets.ClientPackets.Status("Showed Messagebox").Execute(client);
|
new Packets.ClientPackets.Status("Showed Messagebox").Execute(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue