Add an option to confirm trash emptying into settings
ClosedPublic

Authored by rominf on Mar 2 2018, 11:42 AM.

Details

Summary

Add an option to confirm trash emptying into settings.

BUG: 340572

Diff Detail

Repository
R318 Dolphin
Branch
empty-trash-confirmation
Lint
No Linters Available
Unit
No Unit Test Coverage
rominf created this revision.Mar 2 2018, 11:42 AM
Restricted Application added a subscriber: Dolphin. · View Herald TranscriptMar 2 2018, 11:42 AM
rominf requested review of this revision.Mar 2 2018, 11:42 AM
rominf added a project: Dolphin.
rkflx added a subscriber: rkflx.Mar 2 2018, 1:17 PM

Works fine, but I would suggest to move the option just below the option for "Moving to trash", because it is hardly the most important option (which should be at the top). This way it would still be close to the other "trash" option, and the whole list would be ordered by severity of the action.

rominf updated this revision to Diff 28404.Mar 2 2018, 1:52 PM
  • Move Confirm emptying trash checkbox below
ngraham accepted this revision.EditedMar 2 2018, 2:31 PM
ngraham added a subscriber: ngraham.

Works fine and the code looks good too. It's so nice to to see you tackle so many longstanding bugs and feature requests, Roman!

Now I wonder if we can't improve the usability a bit here in a follow-up patch. After this patch lands this patch, 3/4 of the confirmation checkboxes will be related to the trash and deleting things. I think it might make more sense to put them all under the Trash page (where people will naturally go looking for them), rather than hidden away in GeneralConfirmations.

That will leave only two confirmations under the Confirmations tab. We might consider removing the Confirmations tab entirely, moving the remaining two confirmation checkboxes onto the Behavior tab. We could make room for them by removing that tab's existing group boxes and headers, and making the radio button controls look more like those in Gwenview and modern KCMs: with the label to the left of the radio buttons, and all the text written so it can be read in the form of a sentence, e.g.:

Sort (*) Naturally
     () Alphabetically (case insensitive)
     () Alphabetically (case sensitive)

What do folks think of that?

This revision is now accepted and ready to land.Mar 2 2018, 2:31 PM
rkflx added a comment.Mar 2 2018, 3:57 PM

Now I wonder if we can't improve the usability a bit here in a follow-up patch.

Let's open new tasks on the workboard to discuss follow-ups in the future ;)

What do folks think of that?

Makes sense, but don't forget about the "in all KDE applications" caveat. Splitting this makes it harder to communicate, IOW you'd have to duplicate the label and in one place it would only affect a single random item on a tab. Are there plans to move/duplicate/integrate this wrt. to Systemsettings?

src/settings/general/confirmationssettingspage.h
47 ↗(On Diff #28404)

Should be adapted too, to be in the same order as in the UI.

rominf updated this revision to Diff 28424.Mar 2 2018, 5:55 PM
  • Swap MoveToTrash and EmptyTrash in code
rominf marked an inline comment as done.Mar 2 2018, 5:55 PM
rominf added inline comments.
src/settings/general/confirmationssettingspage.h
47 ↗(On Diff #28404)

Fixed

markg accepted this revision.Mar 3 2018, 12:47 AM
markg added a subscriber: markg.

Looks fine, nice to have :)
Feel free to ship it without updating the review for that one little pointer position change.

Or you can update the diff and ship right after, your call.

src/settings/general/confirmationssettingspage.h
48

Consistency. issue, nothing big.
QCheckbox* ....

This revision was automatically updated to reflect the committed changes.
rominf marked 2 inline comments as done.
rominf marked an inline comment as done.Mar 3 2018, 5:47 AM

Now I wonder if we can't improve the usability a bit here in a follow-up patch.

Let's open new tasks on the workboard to discuss follow-ups in the future ;)

What do folks think of that?

Makes sense, but don't forget about the "in all KDE applications" caveat. Splitting this makes it harder to communicate, IOW you'd have to duplicate the label and in one place it would only affect a single random item on a tab. Are there plans to move/duplicate/integrate this wrt. to Systemsettings?

Kind of, see T5970. Feel free to extend the task or open new ones. Global settings that affect all applications should not be configurable only from Dolphin.