File tree Expand file tree Collapse file tree
cosmic-settings/src/pages/sound Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ fn input() -> Section<crate::pages::Message> {
355355 . push ( horizontal_space ( ) . width ( 8. ) )
356356 . push ( slider) ;
357357 let devices = widget:: dropdown:: popup_dropdown (
358- & page. model . sources . description ,
358+ & page. model . sources . display ,
359359 Some ( page. model . sources . active . unwrap_or ( 0 ) ) ,
360360 Message :: SetDefaultSource ,
361361 window:: Id :: RESERVED ,
@@ -435,7 +435,7 @@ fn output() -> Section<crate::pages::Message> {
435435 . push ( slider) ;
436436
437437 let devices = widget:: dropdown:: popup_dropdown (
438- & page. model . sinks . description ,
438+ & page. model . sinks . display ,
439439 Some ( page. model . sinks . active . unwrap_or ( 0 ) ) ,
440440 Message :: SetDefaultSink ,
441441 window:: Id :: RESERVED ,
Original file line number Diff line number Diff line change @@ -183,7 +183,16 @@ impl Model {
183183
184184 None
185185 } )
186- . unwrap_or_else ( || self . sinks . description [ pos] . clone ( ) ) ;
186+ . unwrap_or_else ( || {
187+ Some (
188+ [
189+ & node. device_profile_description ,
190+ " - " ,
191+ & * self . sinks . description [ pos] ,
192+ ]
193+ . concat ( ) ,
194+ )
195+ } ) ;
187196
188197 if let Some ( default_node_id) = self . default_sink {
189198 if default_node_id == node_id {
@@ -241,7 +250,16 @@ impl Model {
241250
242251 None
243252 } )
244- . unwrap_or_else ( || Some ( self . sources . description [ pos] . clone ( ) ) )
253+ . unwrap_or_else ( || {
254+ Some (
255+ [
256+ & node. device_profile_description ,
257+ " - " ,
258+ & * self . sources . description [ pos] ,
259+ ]
260+ . concat ( ) ,
261+ )
262+ } )
245263 {
246264 self . sources . display [ pos] = name;
247265 } else {
You can’t perform that action at this time.
0 commit comments