WI highlight/log on automatic setting change
| @@ -4777,8 +4777,10 @@ jQuery(() => { | ||
| 4777 | 4777 | world_info_min_activations = Number($(this).val()); |
| 4778 | 4778 | $('#world_info_min_activations_counter').val(world_info_min_activations); |
| 4779 | 4779 | |
| 4780 | 4780 | if (world_info_min_activations !== 0 && world_info_max_recursion_steps !== 0) { |
| 4781 | 4781 | $('#world_info_max_recursion_steps').val(0).trigger('input'); |
| 4782 | + flashHighlight($('#world_info_max_recursion_steps').parent()); // flash the other control to show it has changed | |
| 4783 | + console.info('[WI] Max recursion steps set to 0, as min activations is set to', world_info_min_activations); | |
| 4782 | 4784 | } else { |
| 4783 | 4785 | saveSettings(); |
| 4784 | 4786 | } |
| @@ -4840,8 +4842,10 @@ jQuery(() => { | ||
| 4840 | 4842 | $('#world_info_max_recursion_steps').on('input', function () { |
| 4841 | 4843 | world_info_max_recursion_steps = Number($(this).val()); |
| 4842 | 4844 | $('#world_info_max_recursion_steps_counter').val(world_info_max_recursion_steps); |
| 4843 | 4845 | if (world_info_max_recursion_steps !== 0 && world_info_min_activations !== 0) { |
| 4844 | 4846 | $('#world_info_min_activations').val(0).trigger('input'); |
| 4847 | + flashHighlight($('#world_info_min_activations').parent()); // flash the other control to show it has changed | |
| 4848 | + console.info('[WI] Min activations set to 0, as max recursion steps is set to', world_info_max_recursion_steps); | |
| 4845 | 4849 | } else { |
| 4846 | 4850 | saveSettings(); |
| 4847 | 4851 | } |