Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
lzcapp committed Sep 18, 2024
1 parent 3e0d68e commit 8a594ab
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
14 changes: 13 additions & 1 deletion KindleMate2/FrmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public partial class FrmMain : Form {

private DataTable _lookupsDataTable = new();

private readonly StaticData _staticData = new();
private readonly StaticData _staticData;

private readonly string _programsDirectory;

Expand All @@ -46,6 +46,18 @@ public partial class FrmMain : Form {
public FrmMain() {
InitializeComponent();

try {
if (File.Exists(Path.Combine(Environment.CurrentDirectory, "KM2.dat"))) {
File.Delete(Path.Combine(Environment.CurrentDirectory, "KM.dat"));
} else {
File.Copy(Path.Combine(Environment.CurrentDirectory, "KM.dat"), Path.Combine(Environment.CurrentDirectory, "KM2.dat"));
}
} catch (Exception e) {
Messenger.MessageBox(e.Message, Strings.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
Close();
}
_staticData = new StaticData();

SetTheme();

treeViewBooks.ContextMenuStrip = menu;
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions KindleMate2/KindleMate2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<LangVersion>latest</LangVersion>
<PackageLicenseUrl>https://github.com/lzcapp/KindleMate2/blob/main/LICENSE</PackageLicenseUrl>
<TargetFrameworks></TargetFrameworks>
<Version>2024.9.13</Version>
<Version>2024.9.18</Version>
<Deterministic>false</Deterministic>
<AssemblyVersion></AssemblyVersion>
<FileVersion></FileVersion>
Expand Down Expand Up @@ -212,8 +212,8 @@
</ItemGroup>

<ItemGroup>
<None Update="KM2.dat">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<None Update="KM.dat">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="KM2.db">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Expand Down

0 comments on commit 8a594ab

Please sign in to comment.