Skip to content

Commit b5baf3e

Browse files
committed
Rename function name
1 parent b393d36 commit b5baf3e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Flow.Launcher.Core/Plugin/PluginInstaller.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ await DownloadFileAsync(
284284
/// <param name="usePrimaryUrlOnly">If true, only use the primary URL for updates.</param>
285285
/// <param name="token">Cancellation token to cancel the update operation.</param>
286286
/// <returns></returns>
287-
public static async Task UpdatePluginAsync(bool silentUpdate = true, bool usePrimaryUrlOnly = false, CancellationToken token = default)
287+
public static async Task CheckForPluginUpdatesAsync(bool silentUpdate = true, bool usePrimaryUrlOnly = false, CancellationToken token = default)
288288
{
289289
// Update the plugin manifest
290290
await API.UpdatePluginManifestAsync(usePrimaryUrlOnly, token);

Flow.Launcher/App.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,11 @@ private static void AutoPluginUpdates()
298298
{
299299
// check plugin updates every 5 hour
300300
var timer = new PeriodicTimer(TimeSpan.FromHours(5));
301-
await PluginInstaller.UpdatePluginAsync();
301+
await PluginInstaller.CheckForPluginUpdatesAsync();
302302

303303
while (await timer.WaitForNextTickAsync())
304304
// check updates on startup
305-
await PluginInstaller.UpdatePluginAsync();
305+
await PluginInstaller.CheckForPluginUpdatesAsync();
306306
}
307307
});
308308
}

Flow.Launcher/SettingPages/ViewModels/SettingsPanePluginStoreViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ private async Task InstallPluginAsync()
112112
[RelayCommand]
113113
private async Task CheckPluginUpdatesAsync()
114114
{
115-
await PluginInstaller.UpdatePluginAsync(silentUpdate: false);
115+
await PluginInstaller.CheckForPluginUpdatesAsync(silentUpdate: false);
116116
}
117117

118118
private static string GetFileFromDialog(string title, string filter = "")

0 commit comments

Comments
 (0)