Skip to content

Commit 2812220

Browse files
committed
Fixes
1 parent 33c6d89 commit 2812220

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

chrome/player/ui/audio/OutputConvolver.mjs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)