Found and fixed double-doubleclick bug in Charmap

This commit is contained in:
Tig
2024-04-12 12:32:38 -06:00
parent 86f05d1479
commit 8bfc468794

View File

@@ -882,6 +882,9 @@ internal class CharMap : View
return;
}
args.Handled = true;
if (me.Y == 0)
{
me.Y = Cursor.Y;
@@ -968,6 +971,7 @@ internal class CharMap : View
{
var client = new UcdApiClient ();
var decResponse = string.Empty;
string getCodePointError = string.Empty;
var waitIndicator = new Dialog
{
@@ -999,12 +1003,13 @@ internal class CharMap : View
try
{
decResponse = await client.GetCodepointDec (SelectedCodePoint);
Application.Invoke (() => waitIndicator.RequestStop ());
}
catch (HttpRequestException e)
{
getCodePointError = errorLabel.Text = e.Message;
Application.Invoke (() => waitIndicator.RequestStop ());
}
};
Application.Run (waitIndicator);
waitIndicator.Dispose ();