File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Flow.Launcher.Infrastructure/UserSettings Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
- using System . Collections . Generic ;
1
+ using System . Collections . Generic ;
2
2
using Flow . Launcher . Plugin ;
3
3
4
4
namespace Flow . Launcher . Infrastructure . UserSettings
@@ -22,6 +22,9 @@ public void UpdatePluginSettings(List<PluginMetadata> metadatas)
22
22
if ( metadata . ID == "572be03c74c642baae319fc283e561a8" && metadata . ActionKeywords . Count != settings . ActionKeywords . Count )
23
23
settings . ActionKeywords = metadata . ActionKeywords ;
24
24
25
+ if ( string . IsNullOrEmpty ( settings . Version ) )
26
+ settings . Version = metadata . Version ;
27
+
25
28
if ( settings . ActionKeywords ? . Count > 0 )
26
29
{
27
30
metadata . ActionKeywords = settings . ActionKeywords ;
@@ -35,6 +38,7 @@ public void UpdatePluginSettings(List<PluginMetadata> metadatas)
35
38
{
36
39
ID = metadata . ID ,
37
40
Name = metadata . Name ,
41
+ Version = metadata . Version ,
38
42
ActionKeywords = metadata . ActionKeywords ,
39
43
Disabled = metadata . Disabled
40
44
} ;
@@ -46,6 +50,7 @@ public class Plugin
46
50
{
47
51
public string ID { get ; set ; }
48
52
public string Name { get ; set ; }
53
+ public string Version { get ; set ; }
49
54
public List < string > ActionKeywords { get ; set ; } // a reference of the action keywords from plugin manager
50
55
51
56
/// <summary>
You can’t perform that action at this time.
0 commit comments