File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Plugins/Flow.Launcher.Plugin.Calculator Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ static Main()
34
34
{
35
35
MagesEngine = new Engine ( ) ;
36
36
}
37
-
37
+
38
38
public void Init ( PluginInitContext context )
39
39
{
40
40
Context = context ;
@@ -78,16 +78,16 @@ public List<Result> Query(Query query)
78
78
{
79
79
try
80
80
{
81
- Clipboard . SetText ( newResult ) ;
81
+ Clipboard . SetDataObject ( newResult ) ;
82
82
return true ;
83
83
}
84
- catch ( ExternalException )
84
+ catch ( ExternalException e )
85
85
{
86
86
MessageBox . Show ( "Copy failed, please try later" ) ;
87
87
return false ;
88
88
}
89
89
}
90
- }
90
+ }
91
91
} ;
92
92
}
93
93
}
@@ -111,7 +111,7 @@ private bool CanCalculate(Query query)
111
111
{
112
112
return false ;
113
113
}
114
-
114
+
115
115
if ( ! IsBracketComplete ( query . Search ) )
116
116
{
117
117
return false ;
@@ -164,7 +164,7 @@ private bool IsBracketComplete(string query)
164
164
165
165
return leftBracketCount == 0 ;
166
166
}
167
-
167
+
168
168
public string GetTranslatedPluginTitle ( )
169
169
{
170
170
return Context . API . GetTranslation ( "flowlauncher_plugin_caculator_plugin_name" ) ;
You can’t perform that action at this time.
0 commit comments