1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +00:00

Mail: Use set_activates_on_selection and on_activation callback

Preparation for a sortable mailbox. Otherwise the model would resort
itself and select mail again forever.

Arrow keys will no longer load mail automatically, now you also need to
hit Enter.
This commit is contained in:
Karol Kosek 2023-08-29 15:50:37 +02:00 committed by Andrew Kaster
parent 59968c97f0
commit ea70b96cf8
2 changed files with 10 additions and 12 deletions

View file

@ -26,8 +26,8 @@ public:
private:
MailWidget();
void selected_mailbox();
void selected_email_to_load();
void selected_mailbox(GUI::ModelIndex const&);
void selected_email_to_load(GUI::ModelIndex const&);
struct Alternative {
IMAP::BodyStructureData const& body_structure;