Fix lock icon state on auto-lock to chat

This commit is contained in:
Wolfsblvt
2025-01-26 20:50:10 +01:00
parent 8448d6c6e6
commit 2cfb9e8dab

View File

@ -774,6 +774,7 @@ function selectCurrentPersona() {
toastr.info(`Auto locked persona ${personaName} to current chat`, t`Persona Auto Lock`); toastr.info(`Auto locked persona ${personaName} to current chat`, t`Persona Auto Lock`);
} }
saveMetadataDebounced(); saveMetadataDebounced();
updatePersonaLockIcons();
} }
// As the last step, inform user if the persona is only temporarily chosen // As the last step, inform user if the persona is only temporarily chosen
@ -918,7 +919,6 @@ async function lockPersona(type = 'chat') {
switch (type) { switch (type) {
case 'default': { case 'default': {
// TODO: Make this toggle-able
await toggleDefaultPersona(user_avatar, { quiet: true }); await toggleDefaultPersona(user_avatar, { quiet: true });
break; break;
} }