@@ -121,7 +121,7 @@ IEnumerable<string> GetFontsDirs()
121121 if ( ! Path . GetFullPath ( assetPath ) . StartsWith ( Path . GetFullPath ( Application . dataPath ) ) )
122122 {
123123 string path = assetPath ;
124- PackageInfo packageInfo = packages . Find ( x => Path . GetFullPath ( path ) . StartsWith ( $ "{ Path . GetFullPath ( x . resolvedPath ) } \\ ") ) ;
124+ PackageInfo packageInfo = packages . Find ( x => Path . GetFullPath ( path ) . StartsWith ( $ "{ Path . GetFullPath ( x . resolvedPath ) } ") ) ;
125125 assetPath = $ "{ packageInfo . assetPath } /{ Path . GetFullPath ( assetPath ) . Replace ( Path . GetFullPath ( packageInfo . resolvedPath ) , "" ) } ";
126126 }
127127 }
@@ -148,8 +148,11 @@ IEnumerable<string> GetFontsDirs()
148148 if ( GUILayout . Button ( new GUIContent ( "Update UI" , EditorGUIUtility . IconContent ( documentsOnlyIcon ) . image ) , GUILayout . Height ( 20 ) ) ||
149149 ( downloadImages = GUILayout . Button ( new GUIContent ( "Update UI & Images" , EditorGUIUtility . IconContent ( documentWithImagesIcon ) . image ) , GUILayout . Width ( 184 ) , GUILayout . Height ( 20 ) ) ) ||
150150 ( forceUpdate = GUILayout . Button ( new GUIContent ( EditorGUIUtility . FindTexture ( folderIcon ) ) , GUILayout . Width ( 36 ) ) ) )
151+ {
151152 Update ( forceUpdate ? default : AssetDatabase . GetAssetPath ( visualTreeAsset ) ,
152- forceUpdate ? EditorUtility . DisplayDialog ( "Figma Updater" , "Do you want to update images as well?" , "Yes" , "No" ) : downloadImages ) ;
153+ forceUpdate ? EditorUtility . DisplayDialog ( "Figma Updater" , "Do you want to update images as well?" , "Yes" , "No" ) : downloadImages ) ;
154+ GUIUtility . ExitGUI ( ) ;
155+ }
153156
154157 EditorGUILayout . EndHorizontal ( ) ;
155158 EditorGUILayout . EndVertical ( ) ;
@@ -496,6 +499,7 @@ void AddSvgImport(string id, string path)
496499 }
497500
498501 Progress . SetDescription ( progress , "Importing svg..." ) ;
502+ #warning These paths are not absolute or relative
499503 foreach ( SVGImporter importer in importSvg . Select ( value => ( SVGImporter ) AssetImporter . GetAtPath ( value . path ) ) )
500504 {
501505#if VECTOR_GRAPHICS_RASTER
0 commit comments