Not adding

Before the error happened, I was…
[Replace this text.]

Error message (don't change this)
Anki 23.12.1 (1a1d4d54)  (ao)
Python 3.9.15 Qt 6.5.3 PyQt 6.5.3
Platform: macOS-14.4.1-arm64-arm-64bit

Traceback (most recent call last):

  File "aqt.taskman", line 142, in _on_closures_pending

  File "/Users/allswellaryee/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 64, in <lambda>
    on_done=lambda future: on_new_deck_subscriptions_done(

  File "/Users/allswellaryee/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 27, in on_new_deck_subscriptions_done
    on_done(future_with_exception(future.exception()))

  File "/Users/allswellaryee/Library/Application Support/Anki2/addons21/1322529746/gui/menu.py", line 329, in on_done
    future.result()

  File "concurrent.futures._base", line 439, in result

  File "concurrent.futures._base", line 391, in __get_result

  File "/Users/allswellaryee/Library/Application Support/Anki2/addons21/1322529746/gui/operations/utils.py", line 39, in wrapper
    return func(*args, **kwargs)

  File "/Users/allswellaryee/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 62, in _on_deck_infos_fetched
    dialog.deck_id_to_behavior_on_remote_note_deleted_dict()

  File "/Users/allswellaryee/Library/Application Support/Anki2/addons21/1322529746/gui/configure_deleted_notes_dialog.py", line 52, in deck_id_to_behavior_on_remote_note_deleted_dict
    checkbox_layout = self.grid_layout.itemAtPosition(i, 1).layout()

RuntimeError: wrapped C/C++ object of type QGridLayout has been deleted

Sentry link (for developers)

@ProductTeam we got reports of this error occuring on Anki 24.04 but it also apparently can happen on 23.12.1.