Skip to content

Commit e64771f

Browse files
committed
Move IAsyncReloadable.cs, IReloadable.cs, ISavable.cs to IFeatures
1 parent 55e985f commit e64771f

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

Flow.Launcher.Plugin/Feature.cs renamed to Flow.Launcher.Plugin/Interfaces/Feature.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Collections.Specialized;
4+
using System.Threading;
45

56
namespace Flow.Launcher.Plugin
67
{
@@ -32,5 +33,6 @@ public class ResultUpdatedEventArgs : EventArgs
3233
{
3334
public List<Result> Results;
3435
public Query Query;
36+
public CancellationToken Token { get; init; }
3537
}
3638
}

Flow.Launcher.Plugin/Interfaces/IAsyncReloadable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Flow.Launcher.Plugin
1313
/// The command that allows user to manual reload is exposed via Plugin.Sys, and
1414
/// it will call the plugins that have implemented this interface.
1515
/// </summary>
16-
public interface IAsyncReloadable
16+
public interface IAsyncReloadable : IFeatures
1717
{
1818
Task ReloadDataAsync();
1919
}

Flow.Launcher.Plugin/Interfaces/IReloadable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/// If requiring reloading data asynchronously, please use the IAsyncReloadable interface
1616
/// </para>
1717
/// </summary>
18-
public interface IReloadable
18+
public interface IReloadable : IFeatures
1919
{
2020
void ReloadData();
2121
}

Flow.Launcher.Plugin/Interfaces/ISavable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
/// Otherwise if LoadSettingJsonStorage or SaveSettingJsonStorage has been callded,
66
/// plugin settings will be automatically saved (see Flow.Launcher/PublicAPIInstance.SavePluginSettings) by Flow
77
/// </summary>
8-
public interface ISavable
8+
public interface ISavable : IFeatures
99
{
1010
void Save();
1111
}
12-
}
12+
}

0 commit comments

Comments
 (0)