@@ -40,9 +40,9 @@ public void Init(PluginInitContext context)
40
40
MagesEngine = new Engine ( new Configuration
41
41
{
42
42
Scope = new Dictionary < string , object >
43
- {
44
- { "e" , Math . E } , // e is not contained in the default mages engine
45
- }
43
+ {
44
+ { "e" , Math . E } , // e is not contained in the default mages engine
45
+ }
46
46
} ) ;
47
47
}
48
48
@@ -109,10 +109,10 @@ public List<Result> Query(Query query)
109
109
return
110
110
[
111
111
new Result
112
- {
113
- Title = Localize . flowlauncher_plugin_calculator_expression_not_complete ( ) ,
114
- IcoPath = IcoPath
115
- }
112
+ {
113
+ Title = Localize . flowlauncher_plugin_calculator_expression_not_complete ( ) ,
114
+ IcoPath = IcoPath
115
+ }
116
116
] ;
117
117
}
118
118
@@ -134,27 +134,27 @@ public List<Result> Query(Query query)
134
134
return
135
135
[
136
136
new Result
137
- {
138
- Title = newResult ,
139
- IcoPath = IcoPath ,
140
- Score = 300 ,
141
- // Check context nullability for unit testing
142
- SubTitle = Context == null ? string . Empty : Localize . flowlauncher_plugin_calculator_copy_number_to_clipboard ( ) ,
143
- CopyText = newResult ,
144
- Action = c =>
145
137
{
146
- try
147
- {
148
- Context . API . CopyToClipboard ( newResult ) ;
149
- return true ;
150
- }
151
- catch ( ExternalException )
138
+ Title = newResult ,
139
+ IcoPath = IcoPath ,
140
+ Score = 300 ,
141
+ // Check context nullability for unit testing
142
+ SubTitle = Context == null ? string . Empty : Localize . flowlauncher_plugin_calculator_copy_number_to_clipboard ( ) ,
143
+ CopyText = newResult ,
144
+ Action = c =>
152
145
{
153
- Context . API . ShowMsgBox ( Localize . flowlauncher_plugin_calculator_failed_to_copy ( ) ) ;
154
- return false ;
146
+ try
147
+ {
148
+ Context . API . CopyToClipboard ( newResult ) ;
149
+ return true ;
150
+ }
151
+ catch ( ExternalException )
152
+ {
153
+ Context . API . ShowMsgBox ( Localize . flowlauncher_plugin_calculator_failed_to_copy ( ) ) ;
154
+ return false ;
155
+ }
155
156
}
156
157
}
157
- }
158
158
] ;
159
159
}
160
160
}
@@ -165,10 +165,10 @@ public List<Result> Query(Query query)
165
165
return
166
166
[
167
167
new Result
168
- {
169
- Title = Localize . flowlauncher_plugin_calculator_expression_not_complete ( ) ,
170
- IcoPath = IcoPath
171
- }
168
+ {
169
+ Title = Localize . flowlauncher_plugin_calculator_expression_not_complete ( ) ,
170
+ IcoPath = IcoPath
171
+ }
172
172
] ;
173
173
}
174
174
0 commit comments