Changeset View
Changeset View
Standalone View
Standalone View
applet/contents/ui/main.qml
Show First 20 Lines • Show All 159 Lines • ▼ Show 20 Line(s) | 155 | onDefaultSinkChanged: { | |||
---|---|---|---|---|---|
160 | // avoid showing a OSD on startup | 160 | // avoid showing a OSD on startup | ||
161 | if (!initalDefaultSinkIsSet) { | 161 | if (!initalDefaultSinkIsSet) { | ||
162 | initalDefaultSinkIsSet = true; | 162 | initalDefaultSinkIsSet = true; | ||
163 | return; | 163 | return; | ||
164 | } | 164 | } | ||
165 | 165 | | |||
166 | var icon = Icon.formFactorIcon(defaultSink.formFactor); | 166 | var icon = Icon.formFactorIcon(defaultSink.formFactor); | ||
167 | if (!icon) { | 167 | if (!icon) { | ||
168 | // Show "muted" icon for Dummy output | ||||
169 | // DEFAULT_SINK_NAME in module-always-sink.c | ||||
170 | if (defaultSink.name === "auto_null") { | ||||
171 | icon = "audio-volume-muted"; | ||||
172 | } | ||||
173 | } | ||||
174 | | ||||
175 | if (!icon) { | ||||
168 | icon = Icon.name(defaultSink.volume, defaultSink.muted); | 176 | icon = Icon.name(defaultSink.volume, defaultSink.muted); | ||
169 | } | 177 | } | ||
170 | osd.showText(icon, defaultSink.description); | 178 | osd.showText(icon, defaultSink.description); | ||
171 | } | 179 | } | ||
172 | } | 180 | } | ||
173 | 181 | | |||
174 | SourceModel { | 182 | SourceModel { | ||
175 | id: paSourceModel | 183 | id: paSourceModel | ||
▲ Show 20 Lines • Show All 317 Lines • Show Last 20 Lines |