mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +00: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
Add a link
Reference in a new issue