/instruct command: don't return current template name if instruct mode is disabled

59e9fda3129cf72fdba65fb145fec3463fd7486d

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -2Ignore whitespace
public/script.js+2 -2
@@ -8563,7 +8563,7 @@ async function selectContextCallback(args, name) {
85638563
8564async function selectInstructCallback(args, name) {8564async function selectInstructCallback(args, name) {
8565 if (!name) {8565 if (!name) {
8566 return power_user.instruct.preset;8566 return power_user.instruct.enabled ? power_user.instruct.preset : '';
8567 }8567 }
85688568
8569 const quiet = isTrueBoolean(args?.quiet);8569 const quiet = isTrueBoolean(args?.quiet);
@@ -9274,7 +9274,7 @@ jQuery(async function () {
9274 ],9274 ],
9275 helpString: `9275 helpString: `
9276 <div>9276 <div>
9277 Selects instruct mode template by name. Gets the current instruct template if no name is provided.9277 Selects instruct mode template by name. Gets the current instruct template if no name is provided and instruct mode is enabled.
9278 </div>9278 </div>
9279 <div>9279 <div>
9280 <strong>Example:</strong>9280 <strong>Example:</strong>