Details
- Reviewers
ervin ngraham mwolff - Group Reviewers
Dolphin Frameworks VDG - Commits
- R241:3db04cfc5179: Add a section for removable devices
From any kde app try to open/save a file.
Plug any removable device in your computer, make sure that it appears over 'Removable devices' section on places panel
Diff Detail
- Repository
- R241 KIO
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Can you put the screenshot in the Summary section above, and list the dependencies there too? Also put dependency information there, in the following form:
Depends on D8243
Depends on D8332
This special syntax marks them as dependencies.
src/filewidgets/kfileplacesitem.cpp | ||
---|---|---|
354 | could you use new connect api please ? |
Found a small one after all.
src/filewidgets/kfileplacesitem_p.h | ||
---|---|---|
51 | RemovableDevicesType (since you used the plural on the one above). |
Could you add camera:/ devices to this section too? That way we could also take care of https://bugs.kde.org/show_bug.cgi?id=386060
What about something like this as well
The removable device gets an "unmount" or "disconnect" icon on hover?
Thoughts?
Yes yes yes! That would also resolve https://bugs.kde.org/show_bug.cgi?id=154499
Of course, if this isn't an easy change, we may not want to overload the patch.
the UDI comment needs to be investigated, otherwise lgtm
autotests/kfileplacesmodeltest.cpp | ||
---|---|---|
180–181 ↗ | (On Diff #21296) | the changed list of remote urls that is repeated below could be put into another helper function |
src/filewidgets/kfileplacesitem.cpp | ||
91 ↗ | (On Diff #21296) | shouldn't this always be called? i.e. when the bookmark is changed to a different UDI, don't we need to update here, even when we had a valid device UDI before? I think this also means this path isn't unit tested yet |
autotests/kfileplacesmodeltest.cpp | ||
---|---|---|
180–181 ↗ | (On Diff #21296) | done already in https://phabricator.kde.org/D8366 I see, ignore this |
src/filewidgets/kfileplacesitem.cpp | ||
---|---|---|
91 ↗ | (On Diff #21296) | Changed the code to always check for udi changes. |