Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/package/contents/ui/Jobs.qml
Show All 12 Lines | 133 | PlasmaComponents.ProgressBar { | |||
---|---|---|---|---|---|
139 | 139 | | |||
140 | minimumValue: 0 | 140 | minimumValue: 0 | ||
141 | maximumValue: 100 | 141 | maximumValue: 100 | ||
142 | value: notificationsApplet.globalProgress * 100 | 142 | value: notificationsApplet.globalProgress * 100 | ||
143 | } | 143 | } | ||
144 | } | 144 | } | ||
145 | 145 | | |||
146 | Repeater { | 146 | Repeater { | ||
147 | id: jobsRepeater | ||||
147 | model: jobs | 148 | model: jobs | ||
148 | delegate: JobDelegate {} | 149 | delegate: JobDelegate { | ||
150 | infoMessageVisible: { | ||||
151 | if (!infoMessage) { | ||||
152 | return false; | ||||
153 | } | ||||
154 | | ||||
155 | // hide info message if it's the same as the previous job, while we don't | ||||
156 | // actively group those jobs, it still improves the situation where you | ||||
157 | // started copying a couple of different things simultaneously | ||||
158 | var previousItem = jobsRepeater.itemAt(index - 1); | ||||
159 | if (!previousItem) { | ||||
160 | return true; | ||||
161 | } | ||||
162 | | ||||
163 | return previousItem.infoMessage !== infoMessage; | ||||
164 | } | ||||
165 | } | ||||
149 | } | 166 | } | ||
150 | } | 167 | } | ||
Context not available. |