mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
Chess: Use the hourglass cursor while waiting for the ChessEngine
This commit is contained in:
parent
a8f0e489a4
commit
99d6b3b80b
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue