File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -311,17 +311,18 @@ export class OutputConvolver extends AbstractAudioModule {
311311
312312 displayName = displayName . replaceAll ( '\n' , ' ' ) . trim ( ) ;
313313
314- if ( displayName . length === 0 ) {
315- displayName = Localize . getMessage ( 'player_audioconfig_profile_unnamed' ) ;
316- }
317-
318314 const profile = this . config . profiles . find ( ( profile ) => profile . id === parseInt ( key . substring ( 1 ) ) ) ;
319315 if ( profile ) {
320- profile . label = displayName ;
316+ profile . label = displayName ? displayName : `Profile ${ profile . id + 1 } ` ;
321317 this . saveConfig ( ) ;
322318 }
323319 } ,
324320 ) ;
321+
322+ this . ui . profileDropdown . children [ 0 ] . children [ 0 ] . addEventListener ( 'blur' , ( ) => {
323+ this . updateProfileDropdown ( parseInt ( this . ui . profileDropdown . dataset . val . substring ( 1 ) ) ) ;
324+ } ) ;
325+
325326 if ( oldDropdown ) {
326327 this . ui . convolverControls . replaceChild ( this . ui . profileDropdown , oldDropdown ) ;
327328 } else {
You can’t perform that action at this time.
0 commit comments