Skip to content

Commit b853991

Browse files
committed
Addressing more warnings
1 parent ffd8772 commit b853991

File tree

4 files changed

+22
-8
lines changed

4 files changed

+22
-8
lines changed

Flow.Launcher.Core/Flow.Launcher.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<PackageReference Include="Droplex" Version="1.4.1" />
5757
<PackageReference Include="FSharp.Core" Version="5.0.2" />
5858
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="2.1.3" />
59-
<PackageReference Include="squirrel.windows" Version="1.5.2" />
59+
<PackageReference Include="squirrel.windows" Version="1.5.2" NoWarn="NU1701" />
6060
</ItemGroup>
6161

6262
<ItemGroup>

Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public List<Result> LoadContextMenus(Result selectedResult)
6969
private static readonly JsonSerializerOptions options = new()
7070
{
7171
PropertyNameCaseInsensitive = true,
72-
IgnoreNullValues = true,
72+
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
7373
Converters =
7474
{
7575
new JsonObjectConverter()
@@ -535,4 +535,4 @@ public void UpdateSettings(Dictionary<string, object> settings)
535535
}
536536
}
537537
}
538-
}
538+
}

Flow.Launcher.Plugin/Result.cs

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.IO;
44
using System.Threading.Tasks;
55
using System.Windows.Media;
66

77
namespace Flow.Launcher.Plugin
88
{
9-
9+
/// <summary>
10+
/// Describes the result of a plugin
11+
/// </summary>
1012
public class Result
1113
{
1214

@@ -65,6 +67,10 @@ public string IcoPath
6567
}
6668
}
6769

70+
/// <summary>
71+
/// Delegate function, see <see cref="Icon"/>
72+
/// </summary>
73+
/// <returns></returns>
6874
public delegate ImageSource IconDelegate();
6975

7076
/// <summary>
@@ -105,6 +111,9 @@ public string IcoPath
105111
/// </summary>
106112
public IList<int> TitleHighlightData { get; set; }
107113

114+
/// <summary>
115+
/// Deprecated as of Flow Launcher v1.9.1. Subtitle highlighting is no longer offered
116+
/// </summary>
108117
[Obsolete("Deprecated as of Flow Launcher v1.9.1. Subtitle highlighting is no longer offered")]
109118
public IList<int> SubTitleHighlightData { get; set; }
110119

@@ -178,10 +187,15 @@ public override string ToString()
178187
/// Show message as ToolTip on result SubTitle hover over
179188
/// </summary>
180189
public string SubTitleToolTip { get; set; }
181-
190+
191+
/// <summary>
192+
/// Run this result, asynchronously
193+
/// </summary>
194+
/// <param name="context"></param>
195+
/// <returns></returns>
182196
public ValueTask<bool> ExecuteAsync(ActionContext context)
183197
{
184198
return AsyncAction?.Invoke(context) ?? ValueTask.FromResult(Action?.Invoke(context) ?? false);
185199
}
186200
}
187-
}
201+
}

Plugins/Flow.Launcher.Plugin.Shell/Flow.Launcher.Plugin.Shell.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
</ItemGroup>
6262

6363
<ItemGroup>
64-
<PackageReference Include="InputSimulator" Version="1.0.4" />
64+
<PackageReference Include="InputSimulator" Version="1.0.4" NoWarn="NU1701" />
6565
</ItemGroup>
6666

6767
</Project>

0 commit comments

Comments
 (0)