mirror of
https://github.com/EnderIce2/SDR-RPC.git
synced 2025-05-28 22:54:26 +00:00
Small fix
This commit is contained in:
parent
b91db81473
commit
5f6cc9fae6
@ -36,7 +36,6 @@ namespace EnderIce2.SDRSharpPlugin
|
|||||||
private bool AnswerD = false;
|
private bool AnswerD = false;
|
||||||
public async Task<bool> RequestAnswer(DiscordRpcClient client, JoinRequestMessage args)
|
public async Task<bool> RequestAnswer(DiscordRpcClient client, JoinRequestMessage args)
|
||||||
{
|
{
|
||||||
bool tmpansw = false;
|
|
||||||
LogWriter.WriteToFile("Incoming RPC request from " + args.User.Username);
|
LogWriter.WriteToFile("Incoming RPC request from " + args.User.Username);
|
||||||
button1.Visible = true;
|
button1.Visible = true;
|
||||||
button2.Visible = true;
|
button2.Visible = true;
|
||||||
@ -47,7 +46,7 @@ namespace EnderIce2.SDRSharpPlugin
|
|||||||
Application.DoEvents();
|
Application.DoEvents();
|
||||||
await Task.Delay(200);
|
await Task.Delay(200);
|
||||||
}
|
}
|
||||||
tmpansw = AnswerA;
|
bool tmpansw = AnswerA;
|
||||||
LogWriter.WriteToFile($"Client sent an answer. {tmpansw}");
|
LogWriter.WriteToFile($"Client sent an answer. {tmpansw}");
|
||||||
client.Respond(args, tmpansw);
|
client.Respond(args, tmpansw);
|
||||||
AnswerA = false;
|
AnswerA = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user