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

"Select a source" and "Deleting..." shown at the same #929

Closed
sssoleileraaa opened this issue Mar 13, 2020 · 4 comments
Closed

"Select a source" and "Deleting..." shown at the same #929

sssoleileraaa opened this issue Mar 13, 2020 · 4 comments
Labels
bug Something isn't working needs/reproducing

Comments

@sssoleileraaa
Copy link
Contributor

Description

Both the "Select a source" text and the "Deleting..." text are shown at the same time when you make a deletion during sync.

We should move the "Select a source" logic from the MainView to the SourceConversationWrapper where the "Deleting..." logic is in order to make sure we only show one or the other.

STR

  1. Click on the ... menu and select "Delete"
  2. Before clicking "Yes" on the confirmation window, wait until you see the sync icon begin its animation
  3. Now click "Yes"

Expected

For the "Delete" text to be displayed.

Actual

The "Delete" text is displayed along with the "Select a source" text.

@sssoleileraaa sssoleileraaa added the bug Something isn't working label Mar 13, 2020
@rmol
Copy link
Contributor

rmol commented Mar 17, 2020

I think this has been fixed by #937. I just tested again on latest master and the pending deletion state is clean.

@redshiftzero
Copy link
Contributor

I also can't repro this one in normal operation of the client. Inspecting the logic - if both SourceConversationWrapper._on_source_deletion (which shows the "Deleting..." text after a successful deletion) and MainView.show_sources (during sync) are called I think we can still end up in a state where the "Deleting..." text (SourceConversationWrapper.waiting_delete_confirmation) appears overlaid with the EmptyConversationView. As a resolution, it would make sense to move the logic determining which of these views to show to one place (also it makes more sense from a dev perspective imho, but open to discussion).

@redshiftzero
Copy link
Contributor

From #955 (comment):

I think what was happening was that the "Select a source screen" would appear after we removed the source item from the source list before we got to delete_conversation which deletes the conversation wrapper with the "Deleting" text.

@sssoleileraaa
Copy link
Contributor Author

I think we can close this because none of us seem to be able to repro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs/reproducing
Projects
None yet
Development

No branches or pull requests

4 participants