From 99d6b3b80b4d8ac434f775892b9422fa18aa566d Mon Sep 17 00:00:00 2001 From: Tom Date: Tue, 22 Dec 2020 11:47:32 -0700 Subject: [PATCH] Chess: Use the hourglass cursor while waiting for the ChessEngine --- Games/Chess/ChessWidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Games/Chess/ChessWidget.cpp b/Games/Chess/ChessWidget.cpp index 918b0dcf50..9888d817f0 100644 --- a/Games/Chess/ChessWidget.cpp +++ b/Games/Chess/ChessWidget.cpp @@ -409,7 +409,9 @@ void ChessWidget::input_engine_move() if (drag_was_enabled) set_drag_enabled(false); + set_override_cursor(Gfx::StandardCursor::Wait); m_engine->get_best_move(board(), 4000, [this, drag_was_enabled](Chess::Move move) { + set_override_cursor(Gfx::StandardCursor::None); if (!want_engine_move()) return; set_drag_enabled(drag_was_enabled);