Skip to content

Commit ef55bd0

Browse files
committed
Update README and clean up
1 parent 1345612 commit ef55bd0

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Keys/KeysManager.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace RishWinTools.Keys
1212
{
1313
public static class KeysManager
1414
{
15-
private static Dictionary<string, KeyObject> Keys;
15+
private static Dictionary<string, KeyObject>? Keys;
1616

1717
public static Dictionary<string, KeyObject> GetKeys(bool forse = false)
1818
{
@@ -29,7 +29,10 @@ public static Dictionary<string, KeyObject> GetKeys(bool forse = false)
2929
if (content.Contains("-----BEGIN "))
3030
{
3131
KeyObject key = new KeyObject(file);
32-
Keys[key.Filename] = key;
32+
if (key != null && key.Filename != null && key.KeyExist)
33+
{
34+
Keys[key.Filename] = key;
35+
}
3336
}
3437
}
3538
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# RishWinTools
2-
SHH Config and Keys Manager for Windows.
2+
SSH Config and Keys Manager for Windows.
33

44
[![Support](https://img.shields.io/github/issues-raw/Delo-Design/RishWinTools?style=for-the-badge&logoWidth=20&label=support)](https://github.com/RadicalMart/ExtraPro/issues)
55
[![Download](https://img.shields.io/github/release/Delo-Design/RishWinTools.svg?style=for-the-badge&colorA=555&colorB=1e87f0&label=download)](https://github.com/RadicalMart/ExtraPro/releases/latest)

RishWinTools.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
1212
<ApplicationIcon>icon.ico</ApplicationIcon>
1313
</PropertyGroup>
14+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
15+
<OutputPath>bin\Release\$(Version)\</OutputPath>
16+
</PropertyGroup>
1417
<ItemGroup>
1518
<Content Include="icon.ico">
1619
<CopyToOutputDirectory>Always</CopyToOutputDirectory>

0 commit comments

Comments
 (0)