Port GridBrowser Delegate UI changes to FileBrowserDelegate too
ClosedPublic

Authored by ngraham on May 28 2019, 8:49 PM.

Details

Summary

When I did D20581, I forgot to do the File Browser view too. This patch ports the UI
changes done in D20581.

Side note: it feels like these two delegates should really be using the same paramaterized
components rather than mostly sharing the same code which must then be kept in sync. This
one also has no test coverage; even more reason to move towards using the GridBrowserDelegate
for both.

BUG: 407945

Test Plan

Tests still pass; UI now looks the same as the grid items in other views

Diff Detail

Repository
R255 Elisa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ngraham requested review of this revision.May 28 2019, 8:49 PM
ngraham created this revision.

I branched off of 0.4 as this seems like a bugfix, but if approved it could probably go only into master instead.

mgallien accepted this revision.May 29 2019, 8:08 PM

Thanks for having taken care of that.

I branched off of 0.4 as this seems like a bugfix, but if approved it could probably go only into master instead.

I see that there is changes with the translated strings.
In order to be able to deliver this quickly, I can think about two possible options:

  • ask the translators for an exception ;
  • quickly deliver a new stable version (for example two months after the 0.4 release)

My preferred option is the second one. What do you think ?

Overall, the file browser support looks a bit broken in my setup (at least for music not indexed by baloo). Can you confirm ?

src/qml/FileBrowserDelegate.qml
167

In order to be able to have it in the bugfix branch, it is probably needed to put back the comment.

This revision is now accepted and ready to land.May 29 2019, 8:08 PM

The file browser *mostly* works fine for me with the 0.4 release + this patch. I can file bugs if you'd like.

I can revert any changes that add new translated strings, how about that? I mostly changed these strings to be the same as in the other grid delegate so it shouldn't be hard to avoid adding any new strings. Do you think that makes sense?

The file browser *mostly* works fine for me with the 0.4 release + this patch. I can file bugs if you'd like.

Yes please.

I can revert any changes that add new translated strings, how about that? I mostly changed these strings to be the same as in the other grid delegate so it shouldn't be hard to avoid adding any new strings. Do you think that makes sense?

That would be perfect. Thanks

ngraham updated this revision to Diff 58914.May 30 2019, 4:12 PM

Revert string changes so this can land in the stable branch

This revision was automatically updated to reflect the committed changes.

Actually, testing again, this patch fixed all the outstanding issues I found with the Folder Browser. \o/