summaryrefslogtreecommitdiff
path: root/Games
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2020-12-22 11:47:32 -0700
committerAndreas Kling <kling@serenityos.org>2020-12-22 23:37:25 +0100
commit99d6b3b80b4d8ac434f775892b9422fa18aa566d (patch)
treeb3cb2d42f8575984c7fc5dfd11aee9caf5894348 /Games
parenta8f0e489a4f1401009746b4c60a4a69958e5bf5c (diff)
downloadserenity-99d6b3b80b4d8ac434f775892b9422fa18aa566d.zip
Chess: Use the hourglass cursor while waiting for the ChessEngine
Diffstat (limited to 'Games')
-rw-r--r--Games/Chess/ChessWidget.cpp2
1 files changed, 2 insertions, 0 deletions
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);