Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

Commit

Permalink
Merge branch 'dev' into release_branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jjw24 committed Mar 14, 2020
2 parents 7877cb7 + d183f62 commit 0bfa75a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
6 changes: 0 additions & 6 deletions Plugins/HelloWorldCSharp/App.config

This file was deleted.

2 changes: 0 additions & 2 deletions Plugins/HelloWorldCSharp/HelloWorldCSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<AssemblyName>HelloWorldCSharp</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Expand Down Expand Up @@ -53,7 +52,6 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="plugin.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down
11 changes: 10 additions & 1 deletion Wox.Plugin/IPublicAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,16 @@ public interface IPublicAPI
/// <param name="title">Message title</param>
/// <param name="subTitle">Message subtitle</param>
/// <param name="iconPath">Message icon path (relative path to your plugin folder)</param>
void ShowMsg(string title, string subTitle = "", string iconPath = "", bool useMainWindowAsOwner = true);
void ShowMsg(string title, string subTitle = "", string iconPath = "");

/// <summary>
/// Show message box
/// </summary>
/// <param name="title">Message title</param>
/// <param name="subTitle">Message subtitle</param>
/// <param name="iconPath">Message icon path (relative path to your plugin folder)</param>
/// <param name="useMainWindowAsOwner">when true will use main windows as the owner</param>
void ShowMsg(string title, string subTitle, string iconPath, bool useMainWindowAsOwner = true);

/// <summary>
/// Open setting dialog
Expand Down
4 changes: 2 additions & 2 deletions Wox.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.271
# Visual Studio Version 16
VisualStudioVersion = 16.0.29806.167
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wox.Test", "Wox.Test\Wox.Test.csproj", "{FF742965-9A80-41A5-B042-D6C7D3A21708}"
ProjectSection(ProjectDependencies) = postProject
Expand Down
7 changes: 6 additions & 1 deletion Wox/PublicAPIInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ public void ShowApp()
_mainVM.MainWindowVisibility = Visibility.Visible;
}

public void ShowMsg(string title, string subTitle = "", string iconPath = "", bool useMainWindowAsOwner = true)
public void ShowMsg(string title, string subTitle = "", string iconPath = "")
{
ShowMsg(title, subTitle, iconPath, true);
}

public void ShowMsg(string title, string subTitle, string iconPath, bool useMainWindowAsOwner = true)
{
Application.Current.Dispatcher.Invoke(() =>
{
Expand Down

0 comments on commit 0bfa75a

Please sign in to comment.