[Folder View] Add "home" button
ClosedPublic

Authored by broulik on Mar 27 2017, 5:45 PM.

Details

Summary

This adds an easy way to get back to the preconfigured location.
While Folder View reverts to the start location automatically when a popup closes, if you use it in a sidebar, this can never happen and leaves you with tediously clicking "Back" continuously.

Test Plan

The button is shown when:

  • The title label is shown (ie. not in cascading popups on the desktop)
  • and the currently viewed at location is not the configured (start) location

Diff Detail

Repository
R119 Plasma Desktop
Lint
Lint Skipped
Unit
Unit Tests Skipped
broulik created this revision.Mar 27 2017, 5:45 PM
Restricted Application added a project: Plasma. · View Herald TranscriptMar 27 2017, 5:45 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik updated this revision to Diff 12877.Mar 27 2017, 5:47 PM
  • Destroy button again so the label anchoring and all resets properly when going home
hein accepted this revision.Mar 28 2017, 8:42 AM

Nice one, but let's not go nuts adding more toolbar buttons :).

This revision is now accepted and ready to land.Mar 28 2017, 8:42 AM
This revision was automatically updated to reflect the committed changes.