Skip to content

Commit d0bab86

Browse files
committed
Improve code quality
1 parent 54f02e0 commit d0bab86

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Flow.Launcher.Core/ProgressBoxEx.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ private ProgressBoxEx(Action forceClosed)
1717
InitializeComponent();
1818
}
1919

20-
public static IProgressBoxEx Show(string caption, Action forceClosed)
20+
public static IProgressBoxEx Show(string caption, Action forceClosed = null)
2121
{
2222
if (!Application.Current.Dispatcher.CheckAccess())
2323
{

Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ internal async Task InstallOrUpdateAsync(UserPlugin plugin)
158158
var totalBytes = response.Content.Headers.ContentLength ?? -1L;
159159
var canReportProgress = totalBytes != -1;
160160

161-
if (canReportProgress && (prgBox = Context.API.ShowProgressBox("Download plugin...")) != null)
161+
if (canReportProgress && (prgBox = Context.API.ShowProgressBox($"Download {plugin.Name}...")) != null)
162162
{
163163
await using var contentStream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false);
164164
await using var fileStream = new FileStream(filePath, FileMode.Create, FileAccess.Write, FileShare.None, 8192, true);

0 commit comments

Comments
 (0)