From b5baf3ebeab63ff4c79815a4d10e5a71a947ae69 Mon Sep 17 00:00:00 2001
From: Jack251970 <1160210343@qq.com>
Date: Mon, 14 Jul 2025 16:24:46 +0800
Subject: [PATCH] Rename function name
---
Flow.Launcher.Core/Plugin/PluginInstaller.cs | 2 +-
Flow.Launcher/App.xaml.cs | 4 ++--
.../ViewModels/SettingsPanePluginStoreViewModel.cs | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Flow.Launcher.Core/Plugin/PluginInstaller.cs b/Flow.Launcher.Core/Plugin/PluginInstaller.cs
index 692fe3ce1..4c551f993 100644
--- a/Flow.Launcher.Core/Plugin/PluginInstaller.cs
+++ b/Flow.Launcher.Core/Plugin/PluginInstaller.cs
@@ -284,7 +284,7 @@ public static class PluginInstaller
/// If true, only use the primary URL for updates.
/// Cancellation token to cancel the update operation.
///
- 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);
diff --git a/Flow.Launcher/App.xaml.cs b/Flow.Launcher/App.xaml.cs
index 6b04f11d9..7e3915b2b 100644
--- a/Flow.Launcher/App.xaml.cs
+++ b/Flow.Launcher/App.xaml.cs
@@ -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();
}
});
}
diff --git a/Flow.Launcher/SettingPages/ViewModels/SettingsPanePluginStoreViewModel.cs b/Flow.Launcher/SettingPages/ViewModels/SettingsPanePluginStoreViewModel.cs
index bfec08c52..96cd44072 100644
--- a/Flow.Launcher/SettingPages/ViewModels/SettingsPanePluginStoreViewModel.cs
+++ b/Flow.Launcher/SettingPages/ViewModels/SettingsPanePluginStoreViewModel.cs
@@ -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 = "")