diff options
author | Tom <tomut@yahoo.com> | 2020-12-22 11:47:32 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-22 23:37:25 +0100 |
commit | 99d6b3b80b4d8ac434f775892b9422fa18aa566d (patch) | |
tree | b3cb2d42f8575984c7fc5dfd11aee9caf5894348 /Games | |
parent | a8f0e489a4f1401009746b4c60a4a69958e5bf5c (diff) | |
download | serenity-99d6b3b80b4d8ac434f775892b9422fa18aa566d.zip |
Chess: Use the hourglass cursor while waiting for the ChessEngine
Diffstat (limited to 'Games')
-rw-r--r-- | Games/Chess/ChessWidget.cpp | 2 |
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); |