Ver código fonte

There is no need use the Application.MainLoop.AddIdle as the async call seems to work properly now.

BDisp 4 anos atrás
pai
commit
27a617abba

+ 1 - 4
Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs

@@ -269,10 +269,7 @@ namespace Terminal.Gui {
 				}
 
 				if ((mouseFlag & MouseFlags.ReportMousePosition) == 0) {
-					Application.MainLoop.AddIdle (() => {
-						ProcessContinuousButtonPressedAsync (cev, mouseFlag).ConfigureAwait (false);
-						return false;
-					});
+					ProcessContinuousButtonPressedAsync (cev, mouseFlag).ConfigureAwait (false);
 				}