Add 'Always Show Thought Bubble' setting - keeps thought bubble permanently expanded

This commit is contained in:
Spicy_Marinara
2025-11-06 22:20:35 +01:00
parent 227eb4c31e
commit d4fc3ce1d8
2 changed files with 31 additions and 26 deletions
+4
View File
@@ -299,6 +299,10 @@ async function initUI() {
$('#rpg-toggle-always-show-bubble').on('change', function() {
extensionSettings.alwaysShowThoughtBubble = $(this).prop('checked');
saveSettings();
// Force immediate save to ensure setting is persisted before any other code runs
const context = getContext();
const extension_settings = context.extension_settings || context.extensionSettings;
extension_settings[extensionName] = extensionSettings;
// Re-render thoughts to apply the setting
updateChatThoughts();
});