X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/45c6e40d4312a3bc53fb0c64574d9e5b1f298193..c031ffaa79a223a05a4a58de2854c9855e94cc18:/src/editor/plugins/core/switch.js diff --git a/src/editor/plugins/core/switch.js b/src/editor/plugins/core/switch.js index ff49eb8..edb8e95 100644 --- a/src/editor/plugins/core/switch.js +++ b/src/editor/plugins/core/switch.js @@ -41,7 +41,7 @@ var createSwitchAction = function(createParams) { description = gettext('Switch to') + ' ' + createParams.to.name; return _.extend(state, { - allowed: !!toSwitch, + allowed: !!toSwitch || alreadyInTarget, toggled: alreadyInTarget, description: description, execute: alreadyInTarget ? function() {} : function(callback) {