File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Plugins/Flow.Launcher.Plugin.PluginsManager Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 11using Flow . Launcher . Core . ExternalPlugins ;
2- using Flow . Launcher . Infrastructure . UserSettings ;
32using ICSharpCode . SharpZipLib . Zip ;
4- using Newtonsoft . Json ;
53using System . IO ;
64using System . IO . Compression ;
75using System . Linq ;
6+ using System . Text . Json ;
87
98namespace Flow . Launcher . Plugin . PluginsManager
109{
@@ -72,12 +71,9 @@ internal static UserPlugin GetPluginInfoFromZip(string filePath)
7271
7372 if ( pluginJsonEntry != null )
7473 {
75- using ( StreamReader reader = new StreamReader ( pluginJsonEntry . Open ( ) ) )
76- {
77- string pluginJsonContent = reader . ReadToEnd ( ) ;
78- plugin = JsonConvert . DeserializeObject < UserPlugin > ( pluginJsonContent ) ;
79- plugin . IcoPath = "Images\\ zipfolder.png" ;
80- }
74+ using Stream stream = pluginJsonEntry . Open ( ) ;
75+ plugin = JsonSerializer . Deserialize < UserPlugin > ( stream ) ;
76+ plugin . IcoPath = "Images\\ zipfolder.png" ;
8177 }
8278 }
8379
You can’t perform that action at this time.
0 commit comments