Просмотр исходного кода

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

BDisp 4 лет назад
Родитель
Сommit
27a617abba
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      Terminal.Gui/ConsoleDrivers/CursesDriver/CursesDriver.cs

+ 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);
 				}