Migrate old preference for "click to edit" setting based on chat display style
| @@ -1459,6 +1459,10 @@ async function loadPowerUserSettings(settings, data) { | ||
| 1459 | 1459 | const defaultStscript = JSON.parse(JSON.stringify(power_user.stscript)); |
| 1460 | 1460 | // Load from settings.json |
| 1461 | 1461 | if (settings.power_user !== undefined) { |
| 1462 | + // Migrate old preference to a new setting | |
| 1463 | + if (settings.power_user.click_to_edit === undefined && settings.power_user.chat_display === chat_styles.DOCUMENT) { | |
| 1464 | + settings.power_user.click_to_edit = true; | |
| 1465 | + } | |
| 1462 | 1466 | Object.assign(power_user, settings.power_user); |
| 1463 | 1467 | } |
| 1464 | 1468 | |