Skip to content

Commit

Permalink
- Fixed a bug in the "Delete" function
Browse files Browse the repository at this point in the history
- Added a context menu to the string view
  • Loading branch information
Hans Hartmann committed Sep 30, 2021
1 parent 91ea976 commit 7b31c6d
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 6 deletions.
68 changes: 65 additions & 3 deletions MSFSLocalizer/MSFSLocalizer.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion MSFSLocalizer/MSFSLocalizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,12 @@ private void bDeleteString_Click(object sender, EventArgs e)
if (res != DialogResult.Yes)
return;

tn.Nodes.Remove(tn);
int idx = locFile.Strings.IndexOf(ls);
if (idx != -1)
{
locFile.Strings.Remove(ls);
tvData.Nodes.Remove(tn);
}
isDirty = true;
}

Expand Down
3 changes: 3 additions & 0 deletions MSFSLocalizer/MSFSLocalizer.resx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@
<metadata name="msMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="csMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>721, 17</value>
</metadata>
<metadata name="StatusStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>552, 17</value>
</metadata>
Expand Down
4 changes: 2 additions & 2 deletions MSFSLocalizer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// 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.0.2.0")]
[assembly: AssemblyFileVersion("1.0.2.0")]
[assembly: AssemblyVersion("1.0.3.0")]
[assembly: AssemblyFileVersion("1.0.3.0")]

0 comments on commit 7b31c6d

Please sign in to comment.