mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add DeepCopy method
This commit is contained in:
parent
73f2c3b503
commit
0a9eb09d7e
1 changed files with 25 additions and 0 deletions
|
|
@ -183,6 +183,31 @@ namespace Flow.Launcher.Plugin
|
||||||
return Title + SubTitle + Score;
|
return Title + SubTitle + Score;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clones the current result
|
||||||
|
/// </summary>
|
||||||
|
public Result Clone()
|
||||||
|
{
|
||||||
|
return new Result
|
||||||
|
{
|
||||||
|
Title = Title,
|
||||||
|
SubTitle = SubTitle,
|
||||||
|
ActionKeywordAssigned = ActionKeywordAssigned,
|
||||||
|
CopyText = CopyText,
|
||||||
|
AutoCompleteText = AutoCompleteText,
|
||||||
|
IcoPath = IcoPath,
|
||||||
|
RoundedIcon = RoundedIcon,
|
||||||
|
Icon = Icon,
|
||||||
|
Glyph = Glyph,
|
||||||
|
Action = Action,
|
||||||
|
AsyncAction = AsyncAction,
|
||||||
|
Score = Score,
|
||||||
|
TitleHighlightData = TitleHighlightData,
|
||||||
|
OriginQuery = OriginQuery,
|
||||||
|
PluginDirectory = PluginDirectory
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Additional data associated with this result
|
/// Additional data associated with this result
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue