Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combine settings for navigation action after removing a message #7206

Merged
merged 3 commits into from
Oct 6, 2023

Conversation

cketti
Copy link
Member

@cketti cketti commented Sep 28, 2023

This combines the settings "Return to list after delete" and "Show next message after delete" into a single setting "After deleting or moving a message" (suggestions for a better name are welcome).

After the user deletes or moves a message in the message view screen, the available navigation options are:

  • Return to message list
  • Show previous message
  • Show next message

We get rid of the "magic" mode that tries to keep going in the direction in which the user was moving previously.

@cketti cketti requested a review from wmontwe September 29, 2023 14:15
Copy link
Member

@wmontwe wmontwe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that the navigation flow logic has been streamlined. While the name PostRemoveNavigation isn't ideal, I can't provide a better one.

Some of the modified classes reached a size that harms readability, and adding more code to them would be counterproductive.

Optional: The migration logic is scattered across various modules and classes, making it easy to overlook a step. This area could definitely improve with some refactoring.

@cketti cketti marked this pull request as draft October 5, 2023 14:53
@cketti cketti force-pushed the post_delete_action branch from fe33a4b to c209252 Compare October 6, 2023 08:57
cketti added 3 commits October 6, 2023 11:03
After the user deletes or moves a message in the message view screen, the available navigation options are:
- Return to message list
- Show previous message
- Show next message

We get rid of the "magic" mode that tries to keep going in the direction in which the user was moving previously.
@cketti cketti force-pushed the post_delete_action branch from c209252 to 4d434b2 Compare October 6, 2023 09:04
@cketti cketti marked this pull request as ready for review October 6, 2023 10:26
@wmontwe wmontwe self-requested a review October 6, 2023 13:59
Copy link
Member

@wmontwe wmontwe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

app/core/src/main/java/com/fsck/k9/K9.kt Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@cketti cketti merged commit 533bca6 into main Oct 6, 2023
2 checks passed
@cketti cketti deleted the post_delete_action branch October 6, 2023 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants