We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6125d4 commit ba07623Copy full SHA for ba07623
core/variables.ts
@@ -747,7 +747,13 @@ export function deleteVariable(
747
if ((triggeringBlock && uses.length) || uses.length > 1) {
748
// Confirm before deleting multiple blocks.
749
const confirmText = Msg['DELETE_VARIABLE_CONFIRMATION']
750
- .replace('%1', String(uses.length + (triggeringBlock ? 1 : 0)))
+ .replace(
751
+ '%1',
752
+ String(
753
+ uses.length +
754
+ (triggeringBlock && !triggeringBlock.workspace.isFlyout ? 1 : 0),
755
+ ),
756
+ )
757
.replace('%2', variableName);
758
dialog.confirm(confirmText, (ok) => {
759
if (ok && variable) {
0 commit comments