Do not switch to root folder if filelist is already shown#12554
Merged
MorrisJobke merged 1 commit intomasterfrom Nov 22, 2018
Merged
Do not switch to root folder if filelist is already shown#12554MorrisJobke merged 1 commit intomasterfrom
MorrisJobke merged 1 commit intomasterfrom
Conversation
Member
Author
|
/backport to stable14 |
skjnldsv
approved these changes
Nov 20, 2018
Member
|
JSUnit fails: |
Member
|
@juliushaertl Mind to look into this to get the fix shipped in the RC 1 |
Member
Author
|
@MorrisJobke I'm on it, the test actually catched a bug of this solution, so I'll need to do some adjustments to the fix. |
Navigating to the root folder is already handled by OCA.Files.Navigation.setActiveItem in case the view doesn't change. Signed-off-by: Julius Härtl <jus@bitgrid.net>
2b1d43c to
a90b4bc
Compare
Member
Author
|
@MorrisJobke I think I found a way to stop triggering the reload without interfering with existing behaviour. Please give this another test @ChristophWurst @skjnldsv since the logic changed a bit to work around the crazy event passing happening in the files app. |
Member
|
/backport to stable14 |
|
backport to stable14 in #12593 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Navigating to the root folder is already handled by OCA.Files.Navigation.setActiveItem in case the view doesn't change.
Fixes #12493 since there was a race condition between the root folder loading for falling back when clicking the All files sidebar entry and the actual view that should be loaded.