mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +00:00
LibCards+Games: Return ErrorOr from CardStack::add_all_grabbed_cards()
...and CardGame::pick_up_cards_from_stack() which is its only caller.
This commit is contained in:
parent
c7c4d70f6e
commit
ccabc8e930
6 changed files with 16 additions and 13 deletions
|
@ -272,7 +272,7 @@ void Game::mousedown_event(GUI::MouseEvent& event)
|
|||
update(top_card.rect());
|
||||
}
|
||||
} else if (!is_moving_cards()) {
|
||||
pick_up_cards_from_stack(to_check, click_location, Cards::CardStack::MovementRule::Same);
|
||||
pick_up_cards_from_stack(to_check, click_location, Cards::CardStack::MovementRule::Same).release_value_but_fixme_should_propagate_errors();
|
||||
m_mouse_down_location = click_location;
|
||||
// When the user wants to automatically move cards, do not go into the drag mode.
|
||||
if (event.button() != GUI::MouseButton::Secondary)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue