From aa0f9b2e73c550964475f4b0e2454c3c5728ecb7 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sat, 3 May 2025 08:58:40 +0800 Subject: [PATCH] Update name --- .../{IAsyncEmptyQuery.cs => IAsyncHomeQuery.cs} | 6 +++--- .../Interfaces/{IEmptyQuery.cs => IHomeQuery.cs} | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) rename Flow.Launcher.Plugin/Interfaces/{IAsyncEmptyQuery.cs => IAsyncHomeQuery.cs} (79%) rename Flow.Launcher.Plugin/Interfaces/{IEmptyQuery.cs => IHomeQuery.cs} (72%) diff --git a/Flow.Launcher.Plugin/Interfaces/IAsyncEmptyQuery.cs b/Flow.Launcher.Plugin/Interfaces/IAsyncHomeQuery.cs similarity index 79% rename from Flow.Launcher.Plugin/Interfaces/IAsyncEmptyQuery.cs rename to Flow.Launcher.Plugin/Interfaces/IAsyncHomeQuery.cs index a18f0848d..f7a820f18 100644 --- a/Flow.Launcher.Plugin/Interfaces/IAsyncEmptyQuery.cs +++ b/Flow.Launcher.Plugin/Interfaces/IAsyncHomeQuery.cs @@ -7,17 +7,17 @@ namespace Flow.Launcher.Plugin /// /// Asynchronous Query Model for Flow Launcher When Query Text is Empty /// - public interface IAsyncEmptyQuery + public interface IAsyncHomeQuery { /// /// Asynchronous Querying When Query Text is Empty /// /// /// If the Querying method requires high IO transmission - /// or performing CPU intense jobs (performing better with cancellation), please use this IAsyncEmptyQuery interface + /// or performing CPU intense jobs (performing better with cancellation), please use this IAsyncHomeQuery interface /// /// Cancel when querying job is obsolete /// - Task> EmptyQueryAsync(CancellationToken token); + Task> HomeQueryAsync(CancellationToken token); } } diff --git a/Flow.Launcher.Plugin/Interfaces/IEmptyQuery.cs b/Flow.Launcher.Plugin/Interfaces/IHomeQuery.cs similarity index 72% rename from Flow.Launcher.Plugin/Interfaces/IEmptyQuery.cs rename to Flow.Launcher.Plugin/Interfaces/IHomeQuery.cs index 4ebdcf1fd..f3c9cfcad 100644 --- a/Flow.Launcher.Plugin/Interfaces/IEmptyQuery.cs +++ b/Flow.Launcher.Plugin/Interfaces/IHomeQuery.cs @@ -8,10 +8,10 @@ namespace Flow.Launcher.Plugin /// Synchronous Query Model for Flow Launcher When Query Text is Empty /// /// If the Querying method requires high IO transmission - /// or performaing CPU intense jobs (performing better with cancellation), please try the IAsyncEmptyQuery interface + /// or performaing CPU intense jobs (performing better with cancellation), please try the IAsyncHomeQuery interface /// /// - public interface IEmptyQuery : IAsyncEmptyQuery + public interface IHomeQuery : IAsyncHomeQuery { /// /// Querying When Query Text is Empty @@ -21,8 +21,8 @@ namespace Flow.Launcher.Plugin /// /// /// - List EmptyQuery(); + List HomeQuery(); - Task> IAsyncEmptyQuery.EmptyQueryAsync(CancellationToken token) => Task.Run(EmptyQuery); + Task> IAsyncHomeQuery.HomeQueryAsync(CancellationToken token) => Task.Run(HomeQuery); } }