Skip to content

Commit 5c48aca

Browse files
committed
Add loading api functions for all plugins
1 parent 30aa1fa commit 5c48aca

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,5 +335,15 @@ public interface IPublicAPI
335335
/// <param name="forceClosed">When user closes the progress box manually by button or esc key, this action will be called.</param>
336336
/// <returns>A progress box interface.</returns>
337337
public Task ShowProgressBoxAsync(string caption, Func<Action<double>, Task> reportProgressAsync, Action forceClosed = null);
338+
339+
/// <summary>
340+
/// Start the loading bar in main window
341+
/// </summary>
342+
public void StartLoadingBar();
343+
344+
/// <summary>
345+
/// Stop the loading bar in main window
346+
/// </summary>
347+
public void StopLoadingBar();
338348
}
339349
}

0 commit comments

Comments
 (0)