[Feature] Put all language files in sub directory (#314), version 1.2.6.3

This commit is contained in:
Markus Hofknecht 2022-02-07 22:45:10 +01:00
parent 21b79ed0d4
commit ba69fe4df8
4 changed files with 24 additions and 21 deletions

View file

@ -865,6 +865,14 @@ namespace SystemTrayMenu.Business
return myHitTest.RowIndex;
}
private static void InvalidateRowIfIndexInRange(DataGridView dgv, int rowIndex)
{
if (rowIndex > -1 && rowIndex < dgv.Rows.Count)
{
dgv.InvalidateRow(rowIndex);
}
}
private Menu Create(MenuData menuData, string title = null)
{
Menu menu = new();
@ -1191,14 +1199,6 @@ namespace SystemTrayMenu.Business
lastMouseDownRowIndex = -1;
}
private void InvalidateRowIfIndexInRange(DataGridView dgv, int rowIndex)
{
if (rowIndex > -1 && rowIndex < dgv.Rows.Count)
{
dgv.InvalidateRow(rowIndex);
}
}
private void Dgv_SelectionChanged(object sender, EventArgs e)
{
RefreshSelection((DataGridView)sender);

View file

@ -39,5 +39,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.6.2")]
[assembly: AssemblyFileVersion("1.2.6.2")]
[assembly: AssemblyVersion("1.2.6.3")]
[assembly: AssemblyFileVersion("1.2.6.3")]

View file

@ -33,17 +33,17 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<OutputPath>bin\x64\Debug\</OutputPath>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<NoWarn>1701;1702;WFAC010</NoWarn>
<NoWarn>1701;1702;WFAC010;MSB3061</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>bin\AnyCPU\Debug\</OutputPath>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<NoWarn>1701;1702;WFAC010</NoWarn>
<NoWarn>1701;1702;WFAC010;MSB3061</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
<OutputPath>bin\x86\Debug\</OutputPath>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<NoWarn>1701;1702;WFAC010</NoWarn>
<NoWarn>1701;1702;WFAC010;MSB3061</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
@ -73,37 +73,37 @@
<ErrorReport>none</ErrorReport>
<DebugSymbols>true</DebugSymbols>
<Optimize>True</Optimize>
<NoWarn>1701;1702;WFAC010</NoWarn>
<NoWarn>1701;1702;WFAC010;MSB3061</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<ErrorReport>none</ErrorReport>
<DebugSymbols>true</DebugSymbols>
<Optimize>True</Optimize>
<NoWarn>1701;1702;WFAC010</NoWarn>
<NoWarn>1701;1702;WFAC010;MSB3061</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleasePackage|x64'">
<ErrorReport>none</ErrorReport>
<DebugSymbols>true</DebugSymbols>
<Optimize>True</Optimize>
<NoWarn>1701;1702;WFAC010</NoWarn>
<NoWarn>1701;1702;WFAC010;MSB3061</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleasePackage|AnyCPU'">
<ErrorReport>none</ErrorReport>
<DebugSymbols>true</DebugSymbols>
<Optimize>True</Optimize>
<NoWarn>1701;1702;WFAC010</NoWarn>
<NoWarn>1701;1702;WFAC010;MSB3061</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
<ErrorReport>none</ErrorReport>
<DebugSymbols>true</DebugSymbols>
<Optimize>True</Optimize>
<NoWarn>1701;1702;WFAC010</NoWarn>
<NoWarn>1701;1702;WFAC010;MSB3061</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='ReleasePackage|x86'">
<ErrorReport>none</ErrorReport>
<DebugSymbols>true</DebugSymbols>
<Optimize>True</Optimize>
<NoWarn>1701;1702;WFAC010</NoWarn>
<NoWarn>1701;1702;WFAC010;MSB3061</NoWarn>
</PropertyGroup>
<ItemGroup>
<Reference Include="Clearcove.Logging, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
@ -335,8 +335,7 @@
</None>
</ItemGroup>
<PropertyGroup>
<PreBuildEvent>taskkill /fi "pid gt 0" /im SystemTrayMenu.exe
taskkill /f /fi "pid gt 0" /im SystemTrayMenu.exe
<PreBuildEvent>taskkill /f /fi "pid gt 0" /im SystemTrayMenu.exe &gt;nul
EXIT 0</PreBuildEvent>
<RepositoryUrl>https://github.com/Hofknecht/SystemTrayMenu</RepositoryUrl>
<PackageIcon>icon.png</PackageIcon>
@ -350,4 +349,7 @@ EXIT 0</PreBuildEvent>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
<EnableNETAnalyzers>True</EnableNETAnalyzers>
</PropertyGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="if not exist &quot;$(ProjectDir)$(OutDir)\Languages&quot; mkdir &quot;$(ProjectDir)$(OutDir)\Languages&quot;&#xD;&#xA;&#xD;&#xA;cd $(ProjectDir)$(OutDir)&#xD;&#xA;&#xD;&#xA;xcopy /y /i /q &quot;cs-CZ&quot; &quot;Languages\cs-CZ&quot; &gt;nul&#xD;&#xA;rd /s /q &quot;cs-CZ&quot; &gt;nul&#xD;&#xA;xcopy /y /i /q &quot;de-DE&quot; &quot;Languages\de-DE&quot; &gt;nul&#xD;&#xA;rd /s /q &quot;de-DE&quot; &gt;nul&#xD;&#xA;xcopy /y /i /q &quot;es-ES&quot; &quot;Languages\es-ES&quot; &gt;nul&#xD;&#xA;rd /s /q &quot;es-ES&quot; &gt;nul&#xD;&#xA;xcopy /y /i /q &quot;fa-IR&quot; &quot;Languages\fa-IR&quot; &gt;nul&#xD;&#xA;rd /s /q &quot;fa-IR&quot; &gt;nul&#xD;&#xA;xcopy /y /i /q &quot;fr-FR&quot; &quot;Languages\fr-FR&quot; &gt;nul&#xD;&#xA;rd /s /q &quot;fr-FR&quot; &gt;nul&#xD;&#xA;xcopy /y /i /q &quot;it-IT&quot; &quot;Languages\it-IT&quot; &gt;nul&#xD;&#xA;rd /s /q &quot;it-IT&quot; &gt;nul&#xD;&#xA;xcopy /y /i /q &quot;ja-JP&quot; &quot;Languages\ja-JP&quot; &gt;nul&#xD;&#xA;rd /s /q &quot;ja-JP&quot; &gt;nul&#xD;&#xA;xcopy /y /i /q &quot;ko-KR&quot; &quot;Languages\ko-KR&quot; &gt;nul&#xD;&#xA;rd /s /q &quot;ko-KR&quot; &gt;nul&#xD;&#xA;xcopy /y /i /q &quot;nl-NL&quot; &quot;Languages\nl-NL&quot; &gt;nul&#xD;&#xA;rd /s /q &quot;nl-NL&quot; &gt;nul&#xD;&#xA;xcopy /y /i /q &quot;pt-BR&quot; &quot;Languages\pt-BR&quot; &gt;nul&#xD;&#xA;rd /s /q &quot;pt-BR&quot; &gt;nul&#xD;&#xA;xcopy /y /i /q &quot;ru-RU&quot; &quot;Languages\ru-RU&quot; &gt;nul&#xD;&#xA;rd /s /q &quot;ru-RU&quot; &gt;nul&#xD;&#xA;xcopy /y /i /q &quot;tr-TR&quot; &quot;Languages\tr-TR&quot; &gt;nul&#xD;&#xA;rd /s /q &quot;tr-TR&quot; &gt;nul&#xD;&#xA;xcopy /y /i /q &quot;vi-VN&quot; &quot;Languages\vi-VN&quot; &gt;nul&#xD;&#xA;rd /s /q &quot;vi-VN&quot; &gt;nul&#xD;&#xA;xcopy /y /i /q &quot;zh-CN&quot; &quot;Languages\zh-CN&quot; &gt;nul&#xD;&#xA;rd /s /q &quot;zh-CN&quot; &gt;nul&#xD;&#xA;xcopy /y /i /q &quot;ref&quot; &quot;Languages\ref&quot; &gt;nul&#xD;&#xA;rd /s /q &quot;ref&quot; &gt;nul" />
</Target>
</Project>

View file

@ -14,6 +14,7 @@ namespace SystemTrayMenu.UserInterface
InitializeComponent();
Icon = Config.GetAppIcon();
MaximumSize = new Size(10, 1);
// Opacity = 0.01f;
// (otherwise: Task View causes Explorer restart when SystemTrayMenu is open #299)
SetLocation();