D24178: Add ability to cycle through sources in mediacontroller applet
dylanmcdougall added inline comments. INLINE COMMENTS > ngraham wrote in ExpandedRepresentation.qml:121 > Why [W]? W for Walk? Seems kind of arbitrary; "walk" isn't really a word I > would associate with this. In any event this seems like the kind of thing > that would benefit from being a global shortcut rather than something that > only works when the applet is open and has focus. I agree with your judgement on this. I will look into how I can change this. > ngraham wrote in main.qml:252 > Why wouldn't you want to be able to do this when there are two sources? mpris2Source.sources always has at least one value, that value being "@multiplex". Because of this it will have a length of 3 when there are two audio sources, a length of 4 when there are three, etc. Perhaps I should include a comment to clarify and avoid this confusion. REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D24178 To: dylanmcdougall, broulik, #plasma Cc: ngraham, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
D24178: Add ability to cycle through sources in mediacontroller applet
ngraham added reviewers: broulik, Plasma. ngraham added a comment. +1 for the desired end goal, but I have some implementation concerns: INLINE COMMENTS > ExpandedRepresentation.qml:121 > seekSlider.moved(); > +} else if (event.key === Qt.Key_W) { > +root.action_walk_through() Why [W]? W for Walk? Seems kind of arbitrary; "walk" isn't really a word I would associate with this. In any event this seems like the kind of thing that would benefit from being a global shortcut rather than something that only works when the applet is open and has focus. > main.qml:252 > +function action_walk_through() { > +if (mpris2Source.sources.length < 3) { > +return Why wouldn't you want to be able to do this when there are two sources? REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D24178 To: dylanmcdougall, broulik, #plasma Cc: ngraham, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
D24178: Add ability to cycle through sources in mediacontroller applet
dylanmcdougall created this revision. dylanmcdougall added a project: Plasma. dylanmcdougall requested review of this revision. REVISION SUMMARY FEATURE: 412260 REPOSITORY R120 Plasma Workspace BRANCH walk_through_media (branched from master) REVISION DETAIL https://phabricator.kde.org/D24178 AFFECTED FILES applets/mediacontroller/contents/ui/ExpandedRepresentation.qml applets/mediacontroller/contents/ui/main.qml To: dylanmcdougall Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart