From 5c0c09beb14c287208f6b400de28eb138db72be2 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 11 Aug 2021 17:41:27 +0000 Subject: [PATCH] --- source/Plugins/AyaNova.Plugin.V8/Auth.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/Plugins/AyaNova.Plugin.V8/Auth.cs b/source/Plugins/AyaNova.Plugin.V8/Auth.cs index 3ce26b2..8b51381 100644 --- a/source/Plugins/AyaNova.Plugin.V8/Auth.cs +++ b/source/Plugins/AyaNova.Plugin.V8/Auth.cs @@ -18,7 +18,9 @@ namespace AyaNova.PlugIn.V8 private async void btnTest_Click(object sender, EventArgs e) { + btnOk.Enabled=btnTest.Enabled = false; var result = await util.TestUrlAsync(edServerUrl.Text); + btnOk.Enabled = btnTest.Enabled = true; if (result == "OK") { MessageBox.Show("Server URL is GOOD!"); @@ -30,6 +32,7 @@ namespace AyaNova.PlugIn.V8 } private async void btnOk_Click(object sender, EventArgs e) { + btnOk.Enabled = btnTest.Enabled = false; if (!util.Initialized) { var result = await util.TestUrlAsync(edServerUrl.Text); @@ -45,6 +48,7 @@ namespace AyaNova.PlugIn.V8 MessageBox.Show("AyaNova 8 SuperUser account login failed"); return; } + btnOk.Enabled = btnTest.Enabled = true; this.DialogResult = DialogResult.OK; this.Close();