Skip to content

Commit d183f62

Browse files
authored
Merge pull request #165 from jjw24/fixShowMessageIssue
fix issue #150
2 parents 37149d9 + 98ed4e7 commit d183f62

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

Plugins/HelloWorldCSharp/App.config

Lines changed: 0 additions & 6 deletions
This file was deleted.

Plugins/HelloWorldCSharp/HelloWorldCSharp.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<AssemblyName>HelloWorldCSharp</AssemblyName>
1212
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
14-
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1514
<TargetFrameworkProfile />
1615
</PropertyGroup>
1716
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@@ -53,7 +52,6 @@
5352
<Compile Include="Properties\AssemblyInfo.cs" />
5453
</ItemGroup>
5554
<ItemGroup>
56-
<None Include="App.config" />
5755
<None Include="plugin.json">
5856
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
5957
</None>

Wox.Plugin/IPublicAPI.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,16 @@ public interface IPublicAPI
8181
/// <param name="title">Message title</param>
8282
/// <param name="subTitle">Message subtitle</param>
8383
/// <param name="iconPath">Message icon path (relative path to your plugin folder)</param>
84-
void ShowMsg(string title, string subTitle = "", string iconPath = "", bool useMainWindowAsOwner = true);
84+
void ShowMsg(string title, string subTitle = "", string iconPath = "");
85+
86+
/// <summary>
87+
/// Show message box
88+
/// </summary>
89+
/// <param name="title">Message title</param>
90+
/// <param name="subTitle">Message subtitle</param>
91+
/// <param name="iconPath">Message icon path (relative path to your plugin folder)</param>
92+
/// <param name="useMainWindowAsOwner">when true will use main windows as the owner</param>
93+
void ShowMsg(string title, string subTitle, string iconPath, bool useMainWindowAsOwner = true);
8594

8695
/// <summary>
8796
/// Open setting dialog

Wox.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.28307.271
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.29806.167
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wox.Test", "Wox.Test\Wox.Test.csproj", "{FF742965-9A80-41A5-B042-D6C7D3A21708}"
77
ProjectSection(ProjectDependencies) = postProject

Wox/PublicAPIInstance.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,12 @@ public void ShowApp()
9797
_mainVM.MainWindowVisibility = Visibility.Visible;
9898
}
9999

100-
public void ShowMsg(string title, string subTitle = "", string iconPath = "", bool useMainWindowAsOwner = true)
100+
public void ShowMsg(string title, string subTitle = "", string iconPath = "")
101+
{
102+
ShowMsg(title, subTitle, iconPath, true);
103+
}
104+
105+
public void ShowMsg(string title, string subTitle, string iconPath, bool useMainWindowAsOwner = true)
101106
{
102107
Application.Current.Dispatcher.Invoke(() =>
103108
{

0 commit comments

Comments
 (0)