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 1
1
using Flow . Launcher . Core . ExternalPlugins ;
2
- using Flow . Launcher . Infrastructure . UserSettings ;
3
2
using ICSharpCode . SharpZipLib . Zip ;
4
- using Newtonsoft . Json ;
5
3
using System . IO ;
6
4
using System . IO . Compression ;
7
5
using System . Linq ;
6
+ using System . Text . Json ;
8
7
9
8
namespace Flow . Launcher . Plugin . PluginsManager
10
9
{
@@ -72,12 +71,9 @@ internal static UserPlugin GetPluginInfoFromZip(string filePath)
72
71
73
72
if ( pluginJsonEntry != null )
74
73
{
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" ;
81
77
}
82
78
}
83
79
You can’t perform that action at this time.
0 commit comments