Skip to content

Commit

Permalink
Merge pull request #3294 from Jack251970/loading_bar
Browse files Browse the repository at this point in the history
Add loading bar api functions for all plugins
  • Loading branch information
Jack251970 authored Mar 1, 2025
2 parents 79d54d0 + cb48f81 commit 57f20ae
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Flow.Launcher.Core/Plugin/JsonRPCV2Models/JsonRPCPublicAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,5 +175,15 @@ public void BackToQueryResults()
{
_api.BackToQueryResults();
}

public void StartLoadingBar()
{
_api.StartLoadingBar();
}

public void StopLoadingBar()
{
_api.StopLoadingBar();
}
}
}
10 changes: 10 additions & 0 deletions Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,5 +334,15 @@ public interface IPublicAPI
/// <param name="cancelProgress">When user cancel the progress, this action will be called.</param>
/// <returns></returns>
public Task ShowProgressBoxAsync(string caption, Func<Action<double>, Task> reportProgressAsync, Action cancelProgress = 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();
}
}

0 comments on commit 57f20ae

Please sign in to comment.