File tree Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public List<Result> Query(Query query)
3535 {
3636 // no search parameter
3737 // show all .axc files
38- searchPattern = "*.axc" ;
38+ searchPattern = "*.axc? " ;
3939 }
4040 else
4141 {
@@ -45,7 +45,7 @@ public List<Result> Query(Query query)
4545 {
4646 searchPattern += parameter + "*" ;
4747 }
48- searchPattern += ".axc" ;
48+ searchPattern += ".axc? " ;
4949 }
5050
5151 if ( String . Empty . Equals ( settings . axcPath . Trim ( ) ) )
@@ -63,7 +63,7 @@ public List<Result> Query(Query query)
6363 {
6464 Title = axcFile . Substring ( axcFile . LastIndexOf ( "\\ " ) + 1 ) ,
6565 SubTitle = axcFile ,
66- IcoPath = "Images\\ app .png" ,
66+ IcoPath = "Images\\ " + GetExtensionWithoutPeriod ( axcFile ) + " .png",
6767 Action = e =>
6868 {
6969 try
@@ -84,6 +84,11 @@ public List<Result> Query(Query query)
8484 return results ;
8585 }
8686
87+ private string GetExtensionWithoutPeriod ( string path )
88+ {
89+ return Path . GetExtension ( path ) . Substring ( 1 ) ;
90+ }
91+
8792 /// <summary>
8893 /// Init method. Loads the settings from the settings.json file.
8994 /// </summary>
Original file line number Diff line number Diff line change 6767 <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
6868 </None >
6969 </ItemGroup >
70- <ItemGroup >
71- <Content Include =" Images\app.png" >
72- <CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
73- </Content >
74- </ItemGroup >
7570 <ItemGroup >
7671 <Page Include =" Setting.xaml" >
7772 <SubType >Designer</SubType >
7873 <Generator >MSBuild:Compile</Generator >
7974 </Page >
8075 </ItemGroup >
76+ <ItemGroup >
77+ <Content Include =" Images\axc.png" >
78+ <CopyToOutputDirectory >Always</CopyToOutputDirectory >
79+ </Content >
80+ <Content Include =" Images\axc6.png" >
81+ <CopyToOutputDirectory >Always</CopyToOutputDirectory >
82+ </Content >
83+ </ItemGroup >
8184 <Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
8285 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
8386 Other similar extension points exist, see Microsoft.Common.targets.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments