Skip to content

Conversation

@sonburn
Copy link

@sonburn sonburn commented Mar 31, 2022

A few fixes to make the plugin work again, might not be everything but it's the core stuff...

  • Fix for userInfo not being applied to connections group. Removing the pluginIdentifier solved the problem, and it's not necessary Sketch applies the plugin invoking the action as identifier by default.
  • Fix for "doc.selectedLayers().layers is not a function". Dropping .layers() solved the problem.
  • Fix for "Can't find variable: MSLayerArray". Removed MSLayerArray.arrayWithLayers and simply passing the layer objects seems to work fine.
  • Fix for "connectionsGroup.deselectLayerAndParent is not a function". Simply removed this function, without it the user selections are retained despite the folder being added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant