@@ -148,7 +148,8 @@ const SinkVolumeSlider = GObject.registerClass(class SinkVolumeSlider extends St
148
148
if ( this . _name_binding ) this . _name_binding . unbind ( ) ;
149
149
// using the text from the output switcher of the master slider to allow compatibility with extensions
150
150
// that changes it (like Quick Settings Audio Device Renamer)
151
- this . _name_binding = Main . panel . statusArea . quickSettings . _volumeOutput . _output . _deviceItems . get ( device . get_id ( ) ) . label . bind_property ( 'text' , label , 'text' , GObject . BindingFlags . SYNC_CREATE ) ;
151
+ const deviceItem = Main . panel . statusArea . quickSettings . _volumeOutput . _output . _deviceItems . get ( device . get_id ( ) ) ;
152
+ if ( deviceItem ) this . _name_binding = deviceItem . label . bind_property ( 'text' , label , 'text' , GObject . BindingFlags . SYNC_CREATE ) ;
152
153
} ;
153
154
let signal = stream . connect ( "notify::port" , updater ) ;
154
155
updater ( ) ;
@@ -705,7 +706,8 @@ const ApplicationVolumeSlider = GObject.registerClass(class ApplicationVolumeSli
705
706
const item = new PopupImageMenuItem ( "" , device . get_gicon ( ) ) ;
706
707
// using the text from the output switcher of the master slider to allow compatibility with extensions
707
708
// that changes it (like Quick Settings Audio Device Renamer)
708
- Main . panel . statusArea . quickSettings . _volumeOutput . _output . _deviceItems . get ( device . get_id ( ) ) . label . bind_property ( 'text' , item . label , 'text' , GObject . BindingFlags . SYNC_CREATE ) ;
709
+ const deviceItem = Main . panel . statusArea . quickSettings . _volumeOutput . _output . _deviceItems . get ( device . get_id ( ) ) ;
710
+ if ( deviceItem ) deviceItem . label . bind_property ( 'text' , item . label , 'text' , GObject . BindingFlags . SYNC_CREATE ) ;
709
711
item . connect ( 'activate' , ( ) => {
710
712
const dev = this . _lookupDevice ( id ) ;
711
713
if ( dev )
0 commit comments