Add loading api functions for all plugins

This commit is contained in:
Jack251970 2025-02-28 11:26:14 +08:00
parent 30aa1fa6f2
commit 5c48acad89
2 changed files with 20 additions and 0 deletions

View file

@ -175,5 +175,15 @@ namespace Flow.Launcher.Core.Plugin.JsonRPCV2Models
{
_api.BackToQueryResults();
}
public void StartLoadingBar()
{
_api.StartLoadingBar();
}
public void StopLoadingBar()
{
_api.StopLoadingBar();
}
}
}

View file

@ -335,5 +335,15 @@ namespace Flow.Launcher.Plugin
/// <param name="forceClosed">When user closes the progress box manually by button or esc key, this action will be called.</param>
/// <returns>A progress box interface.</returns>
public Task ShowProgressBoxAsync(string caption, Func<Action<double>, Task> reportProgressAsync, Action forceClosed = null);
/// <summary>
/// Start the loading bar in main window
/// </summary>
public void StartLoadingBar();
/// <summary>
/// Stop the loading bar in main window
/// </summary>
public void StopLoadingBar();
}
}