Changeset View
Changeset View
Standalone View
Standalone View
applets/mediacontroller/contents/ui/main.qml
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Line(s) | 90 | Plasmoid.onContextualActionsAboutToShow: { | |||
---|---|---|---|---|---|
134 | if (mpris2Source.currentData.CanQuit) { | 134 | if (mpris2Source.currentData.CanQuit) { | ||
135 | plasmoid.setActionSeparator("quitseparator"); | 135 | plasmoid.setActionSeparator("quitseparator"); | ||
136 | plasmoid.setAction("quit", i18nc("Quit player", "Quit"), "application-exit") | 136 | plasmoid.setAction("quit", i18nc("Quit player", "Quit"), "application-exit") | ||
137 | } | 137 | } | ||
138 | } | 138 | } | ||
139 | 139 | | |||
140 | // HACK Some players like Amarok take quite a while to load the next track | 140 | // HACK Some players like Amarok take quite a while to load the next track | ||
141 | // this avoids having the plasmoid jump between popup and panel | 141 | // this avoids having the plasmoid jump between popup and panel | ||
142 | onStateChanged: { | 142 | function onStateChanged() { | ||
143 | if (state != "") { | 143 | if (state != "") { | ||
144 | plasmoid.status = PlasmaCore.Types.ActiveStatus | 144 | plasmoid.status = PlasmaCore.Types.ActiveStatus | ||
145 | } else { | 145 | } else { | ||
146 | updatePlasmoidStatusTimer.restart() | 146 | updatePlasmoidStatusTimer.restart() | ||
147 | } | 147 | } | ||
148 | } | 148 | } | ||
149 | 149 | | |||
150 | Timer { | 150 | Timer { | ||
▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines |