From 61d2e9e8384b336c1fa6d33fa56816562a85294a Mon Sep 17 00:00:00 2001 From: Jason Burns Date: Wed, 6 Dec 2017 08:38:09 -0600 Subject: [PATCH] Fix for Sketch 48 change of currentView to contentDrawView. --- README.md | 1 + Symbol Organizer.sketchplugin/Contents/Sketch/manifest.json | 2 +- .../Contents/Sketch/script.cocoascript | 2 +- appcast.xml | 6 +++--- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b0ff277..d205e4f 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ To find your plugins directory... # Changelog +* **14.2** - Fix for Sketch 48 change of currentView to contentDrawView. * **14.1** - Update to adjust the view after Symbol Organizer has been run. * **14.0** - Added new Group Space feature and improved appearance of settings window. Improved sorting and grouping; group title case will now be ignored, and group titles which are numbers will now sort properly. * **13.1** - Display Group Titles will now prefer to use "SFProText-Bold" by default, and if the font doesn't exist, will fall back to "SFUIText-Bold", or "HelveticaNeue-Bold". Remove Unused Symbols will now only remove symbols on current page. diff --git a/Symbol Organizer.sketchplugin/Contents/Sketch/manifest.json b/Symbol Organizer.sketchplugin/Contents/Sketch/manifest.json index 03fced8..109704a 100644 --- a/Symbol Organizer.sketchplugin/Contents/Sketch/manifest.json +++ b/Symbol Organizer.sketchplugin/Contents/Sketch/manifest.json @@ -28,7 +28,7 @@ ] }, "identifier" : "com.sonburn.sketchplugins.symbol-organizer", - "version" : "14.1", + "version" : "14.2", "description" : "Organize your symbols page, and layer list, alphabetically and into groupings determined by your symbol names.", "authorEmail" : "jason.burns@synchronoss.com", "name" : "Symbol Organizer", diff --git a/Symbol Organizer.sketchplugin/Contents/Sketch/script.cocoascript b/Symbol Organizer.sketchplugin/Contents/Sketch/script.cocoascript index 45ffdfb..7e8bd9a 100644 --- a/Symbol Organizer.sketchplugin/Contents/Sketch/script.cocoascript +++ b/Symbol Organizer.sketchplugin/Contents/Sketch/script.cocoascript @@ -284,7 +284,7 @@ var symbolOrganizer = function(context,type) { actionWithType(context,"MSCollapseAllGroupsAction").doPerformAction(nil); // Adjust view - context.document.currentView().zoomToFitRect(page.contentBounds()); + context.document.contentDrawView().zoomToFitRect(page.contentBounds()); // Feedback to user if (layoutSettings.removeSymbols == 1 && removedSymbolCount > 0) { diff --git a/appcast.xml b/appcast.xml index d967976..18726eb 100644 --- a/appcast.xml +++ b/appcast.xml @@ -6,15 +6,15 @@ Organize your symbols page, and layer list, alphabetically and into groupings determined by your symbol names. en - Version 14.1 + Version 14.2 -
  • Update to adjust the view after Symbol Organizer has been run.
  • +
  • Fix for Sketch 48 change of currentView to contentDrawView.
  • ]]>
    - +