Skip to content

Commit 2ff135d

Browse files
committed
Add ShowMsg overload with forceShown parameter
Added a new overload of the ShowMsg method in JsonRPCPublicAPI to support a forceShown parameter, enabling callers to control whether the message is forcibly displayed. This overload delegates to the underlying _api.ShowMsg with the new argument.
1 parent 28ac929 commit 2ff135d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ public void ShowMsg(string title, string subTitle, string iconPath, bool useMain
8989
_api.ShowMsg(title, subTitle, iconPath, useMainWindowAsOwner);
9090
}
9191

92+
public void ShowMsg(string title, string subTitle, string iconPath, bool useMainWindowAsOwner = true, bool forceShown = false)
93+
{
94+
_api.ShowMsg(title, subTitle, iconPath, useMainWindowAsOwner, forceShown);
95+
}
96+
9297
public void OpenSettingDialog()
9398
{
9499
_api.OpenSettingDialog();

0 commit comments

Comments
 (0)