Skip to content

Commit 0a9eb09

Browse files
GarulfVictoriousRaptor
authored andcommitted
Add DeepCopy method
1 parent 73f2c3b commit 0a9eb09

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Flow.Launcher.Plugin/Result.cs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,31 @@ public override string ToString()
183183
return Title + SubTitle + Score;
184184
}
185185

186+
/// <summary>
187+
/// Clones the current result
188+
/// </summary>
189+
public Result Clone()
190+
{
191+
return new Result
192+
{
193+
Title = Title,
194+
SubTitle = SubTitle,
195+
ActionKeywordAssigned = ActionKeywordAssigned,
196+
CopyText = CopyText,
197+
AutoCompleteText = AutoCompleteText,
198+
IcoPath = IcoPath,
199+
RoundedIcon = RoundedIcon,
200+
Icon = Icon,
201+
Glyph = Glyph,
202+
Action = Action,
203+
AsyncAction = AsyncAction,
204+
Score = Score,
205+
TitleHighlightData = TitleHighlightData,
206+
OriginQuery = OriginQuery,
207+
PluginDirectory = PluginDirectory
208+
};
209+
}
210+
186211
/// <summary>
187212
/// Additional data associated with this result
188213
/// </summary>

0 commit comments

Comments
 (0)