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
TreeBrowser: Allow new file/folder in top level #960
Conversation
36547d3
to
8ece745
Compare
Fixed being unable to create file from empty folder item "(Empty)". |
The assignment could be written shorter as: I tested the changes and it "probably" works. I cannot test for sure as my @ChrisJAllan just for my curiosity, are you on Linux and your |
Ah, I guess this was worded poorly. I meant the top folder shown in the tree browser, not |
Then I don't understand how to create a new file/folder without a parent. Btw, it was not necessary to create a seperate issue for this, describing the problem and steps to reproduce in the PR description is usually enough. |
At the top level: 2022-01-09.08-57-47.mp4At non-top level: 2022-01-09.08-59-48.mp4The behavior here should be the same and allow for creating files in the current directory. I have tested this on Arch and Ubuntu, same problem. It does create at the top level if nothing is selected, but it's not obvious how to deselect after a file is selected (refresh does it, but that's a terribly convoluted user experience). |
8ece745
to
6ba8009
Compare
Update: use |
Thanks for the explanation, I was finally able to reproduce the issue. |
Uses the URI to get parent instead of the tree to allow for insertion at the top level.
Fixes #1152