Rename function name

This commit is contained in:
Jack251970 2025-07-14 16:24:46 +08:00
parent b393d36186
commit b5baf3ebea
3 changed files with 4 additions and 4 deletions

View file

@ -284,7 +284,7 @@ public static class PluginInstaller
/// <param name="usePrimaryUrlOnly">If true, only use the primary URL for updates.</param>
/// <param name="token">Cancellation token to cancel the update operation.</param>
/// <returns></returns>
public static async Task UpdatePluginAsync(bool silentUpdate = true, bool usePrimaryUrlOnly = false, CancellationToken token = default)
public static async Task CheckForPluginUpdatesAsync(bool silentUpdate = true, bool usePrimaryUrlOnly = false, CancellationToken token = default)
{
// Update the plugin manifest
await API.UpdatePluginManifestAsync(usePrimaryUrlOnly, token);

View file

@ -298,11 +298,11 @@ namespace Flow.Launcher
{
// check plugin updates every 5 hour
var timer = new PeriodicTimer(TimeSpan.FromHours(5));
await PluginInstaller.UpdatePluginAsync();
await PluginInstaller.CheckForPluginUpdatesAsync();
while (await timer.WaitForNextTickAsync())
// check updates on startup
await PluginInstaller.UpdatePluginAsync();
await PluginInstaller.CheckForPluginUpdatesAsync();
}
});
}

View file

@ -112,7 +112,7 @@ public partial class SettingsPanePluginStoreViewModel : BaseModel
[RelayCommand]
private async Task CheckPluginUpdatesAsync()
{
await PluginInstaller.UpdatePluginAsync(silentUpdate: false);
await PluginInstaller.CheckForPluginUpdatesAsync(silentUpdate: false);
}
private static string GetFileFromDialog(string title, string filter = "")