Fix lock icon state on auto-lock to chat
| @@ -774,6 +774,7 @@ function selectCurrentPersona() { | |||
| 774 | toastr.info(`Auto locked persona ${personaName} to current chat`, t`Persona Auto Lock`); | 774 | toastr.info(`Auto locked persona ${personaName} to current chat`, t`Persona Auto Lock`); |
| 775 | } | 775 | } |
| 776 | saveMetadataDebounced(); | 776 | saveMetadataDebounced(); |
| 777 | updatePersonaLockIcons(); | ||
| 777 | } | 778 | } |
| 778 | 779 | ||
| 779 | // As the last step, inform user if the persona is only temporarily chosen | 780 | // As the last step, inform user if the persona is only temporarily chosen |
| @@ -918,7 +919,6 @@ async function lockPersona(type = 'chat') { | |||
| 918 | 919 | ||
| 919 | switch (type) { | 920 | switch (type) { |
| 920 | case 'default': { | 921 | case 'default': { |
| 921 | // TODO: Make this toggle-able | ||
| 922 | await toggleDefaultPersona(user_avatar, { quiet: true }); | 922 | await toggleDefaultPersona(user_avatar, { quiet: true }); |
| 923 | break; | 923 | break; |
| 924 | } | 924 | } |