Skip to content

Commit 7cb4444

Browse files
committed
Internal improvements
1 parent 4b701b7 commit 7cb4444

4 files changed

Lines changed: 28 additions & 23 deletions

File tree

src/EarlyUpdateCheck.cs

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ private bool ContinueWork()
423423
var c = UIThread(() =>
424424
{
425425
bool cw = false;
426-
lock (m_slUpdateCheck)
426+
lock (m_lock) //lock (m_lockUpdateCheck)
427427
{
428428
if (m_slUpdateCheck == null) cw = false;
429429
else cw = m_slUpdateCheck.ContinueWork();
@@ -440,7 +440,7 @@ private void EndLogging()
440440
{
441441
UIThread(() =>
442442
{
443-
lock (m_slUpdateCheck)
443+
lock (m_lock) //lock (m_lockUpdateCheck)
444444
{
445445
if (m_slUpdateCheck != null) m_slUpdateCheck.EndLogging();
446446
m_slUpdateCheck = null;
@@ -645,6 +645,7 @@ private void OnUpdateCheckFormShown(object sender, EventArgs e)
645645
}
646646
continue;
647647
}
648+
bool bFoundPluginUpdateDetails = false;
648649
foreach (PluginUpdate upd in PluginUpdateHandler.Plugins)
649650
{
650651
if (item.SubItems[0].Text != upd.Title) continue;
@@ -655,6 +656,7 @@ private void OnUpdateCheckFormShown(object sender, EventArgs e)
655656
lvPlugins.KeyPress += LvPlugins_KeyPress;
656657
bColumnAdded = true;
657658
}
659+
bFoundPluginUpdateDetails = true;
658660
ListViewItem.ListViewSubItem lvsiUpdate = new ListViewItem.ListViewSubItem(item, PluginTranslate.PluginUpdate);
659661
lvsiUpdate.Name = "EarlyUpdateCheck_UpdateColumn_Item" + item.Index.ToString();
660662
lvsiUpdate.Tag = upd;
@@ -676,10 +678,13 @@ private void OnUpdateCheckFormShown(object sender, EventArgs e)
676678
}
677679
break;
678680
}
679-
var opns = new OtherPluginNotSupported(item.SubItems[0].Text);
680-
opns.SetData(item.SubItems[2].Text, item.SubItems[3].Text);
681-
PluginUpdateHandler.Plugins.RemoveAll(x => x.Title == opns.Title);
682-
PluginUpdateHandler.Plugins.Add(opns);
681+
if (!bFoundPluginUpdateDetails)
682+
{
683+
var opns = new OtherPluginNotSupported(item.SubItems[0].Text);
684+
opns.SetData(item.SubItems[2].Text, item.SubItems[3].Text);
685+
PluginUpdateHandler.Plugins.RemoveAll(x => x.Title == opns.Title);
686+
PluginUpdateHandler.Plugins.Add(opns);
687+
}
683688
}
684689
PluginConfig.SetKnownPluginVersions(PluginUpdateHandler.Plugins);
685690
if (bColumnAdded)
@@ -876,7 +881,7 @@ private void SetUpdateButtonText(Button bUpdate, object oKeePassUpdate)
876881
bUpdate.Text = kpu.Selected ? PluginTranslate.PluginUpdate : PluginTranslate.PluginUpdateSelected;
877882
}
878883
else if (bAtLeast1PluginSelected) bUpdate.Text = PluginTranslate.PluginUpdateSelected;
879-
else if (kpu != null & kpu.Selected) bUpdate.Text = PluginTranslate.PluginUpdateKeePass;
884+
else if (kpu != null && kpu.Selected) bUpdate.Text = PluginTranslate.PluginUpdateKeePass;
880885
else
881886
{
882887
bUpdate.Enabled = false;

src/EarlyUpdateCheck.csproj

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<OutputType>Library</OutputType>
2222
<RootNamespace>EarlyUpdateCheck</RootNamespace>
2323
<AssemblyName>EarlyUpdateCheck</AssemblyName>
24-
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
24+
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
2525
<AppDesignerFolder>Properties</AppDesignerFolder>
2626
<NoWin32Manifest>False</NoWin32Manifest>
2727
<SignAssembly>False</SignAssembly>
@@ -92,11 +92,21 @@
9292
<Reference Include="System.Windows.Forms" />
9393
<Reference Include="System.Xml" />
9494
</ItemGroup>
95+
<ItemGroup>
96+
<PackageReference Include="DotNetZip.Reduced">
97+
<Version>1.9.1.8</Version>
98+
<ExcludeFromPlgx />
99+
</PackageReference>
100+
<PackageReference Include="PlgxTool">
101+
<Version>1.0.0</Version>
102+
<ExcludeFromPlgx />
103+
</PackageReference>
104+
</ItemGroup>
95105
<ItemGroup>
96106
<ProjectReference Include="..\..\_KeePass_Source\KeePass\KeePass.csproj">
97107
<Project>{10938016-dee2-4a25-9a5a-8fd3444379ca}</Project>
98108
<Name>KeePass</Name>
99-
<!--
109+
<!--
100110
We do use the nuget package protobuf-net
101111
Unfortunately, the dll files created during compile time won't be added to the plgx file
102112
@@ -107,16 +117,6 @@
107117
<PlgxReference>bin\Release\Ionic.Zip.Reduced.dll</PlgxReference>
108118
</ProjectReference>
109119
</ItemGroup>
110-
<ItemGroup>
111-
<PackageReference Include="DotNetZip.Reduced">
112-
<Version>1.9.1.8</Version>
113-
<ExcludeFromPlgx />
114-
</PackageReference>
115-
<PackageReference Include="PlgxTool">
116-
<Version>1.0.0</Version>
117-
<ExcludeFromPlgx />
118-
</PackageReference>
119-
</ItemGroup>
120120
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
121121
<Target Name="BeforeBuild" Condition=" '$(Configuration)' == 'Debug' ">
122122
<Exec Command="..\translationcopy.cmd $(Configuration)" />

src/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
[assembly: AssemblyConfiguration("")]
1515
[assembly: AssemblyCompany("rookiestyle")]
1616
[assembly: AssemblyProduct("KeePass Plugin")]
17-
[assembly: AssemblyCopyright("Copyright 2021-2025")]
17+
[assembly: AssemblyCopyright("Copyright © rookiestyle")]
1818
[assembly: AssemblyTrademark("")]
1919
[assembly: AssemblyCulture("")]
2020
// This sets the default COM visibility of types in the assembly to invisible.
@@ -26,6 +26,6 @@
2626
//
2727
// You can specify all the values or you can use the default the Revision and
2828
// Build Numbers by using the '*' as shown below:
29-
[assembly: AssemblyVersion("4.3")]
30-
[assembly: AssemblyFileVersion("4.3")]
29+
[assembly: AssemblyVersion("4.4")]
30+
[assembly: AssemblyFileVersion("4.4")]
3131
[assembly: Guid("672570AF-CC57-4980-86F9-D48FD1CC707D")]

version.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:
2-
Early update check:4.3
2+
Early update check:4.4
33
Early update check!de:9
44
Early update check!ru:2
55
Early update check!fr:1

0 commit comments

Comments
 (0)