Skip to content

Commit b4bffb1

Browse files
committed
Use null as default value for record key
1 parent 1a54eed commit b4bffb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Flow.Launcher.Plugin/Result.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,9 @@ public ValueTask<bool> ExecuteAsync(ActionContext context)
266266
/// The key to identify the record. This is used when FL checks whether the result is the topmost record. Or FL calculates the hashcode of the result for user selected records.
267267
/// This can be useful when your plugin will change the Title or SubTitle of the result dynamically.
268268
/// If the plugin does not specific this, FL just uses Title and SubTitle to identify this result.
269+
/// Note: Because old data does not have this key, we should use null as the default value for consistency.
269270
/// </summary>
270-
public string RecordKey { get; set; } = string.Empty;
271+
public string RecordKey { get; set; } = null;
271272

272273
/// <summary>
273274
/// Info of the preview section of a <see cref="Result"/>

0 commit comments

Comments
 (0)