Skip to content

Commit 57f20ae

Browse files
authored
Merge pull request #3294 from Jack251970/loading_bar
Add loading bar api functions for all plugins
2 parents 79d54d0 + cb48f81 commit 57f20ae

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Flow.Launcher.Core/Plugin/JsonRPCV2Models/JsonRPCPublicAPI.cs

+10
Original file line numberDiff line numberDiff line change
@@ -175,5 +175,15 @@ public void BackToQueryResults()
175175
{
176176
_api.BackToQueryResults();
177177
}
178+
179+
public void StartLoadingBar()
180+
{
181+
_api.StartLoadingBar();
182+
}
183+
184+
public void StopLoadingBar()
185+
{
186+
_api.StopLoadingBar();
187+
}
178188
}
179189
}

Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs

+10
Original file line numberDiff line numberDiff line change
@@ -334,5 +334,15 @@ public interface IPublicAPI
334334
/// <param name="cancelProgress">When user cancel the progress, this action will be called.</param>
335335
/// <returns></returns>
336336
public Task ShowProgressBoxAsync(string caption, Func<Action<double>, Task> reportProgressAsync, Action cancelProgress = null);
337+
338+
/// <summary>
339+
/// Start the loading bar in main window
340+
/// </summary>
341+
public void StartLoadingBar();
342+
343+
/// <summary>
344+
/// Stop the loading bar in main window
345+
/// </summary>
346+
public void StopLoadingBar();
337347
}
338348
}

0 commit comments

Comments
 (0)