Skip to content

Commit

Permalink
- Updates TODO
Browse files Browse the repository at this point in the history
- Fixes can't put empty data into own C/S and ID
- Bumps version to 0.6.2
  • Loading branch information
FalcoGer committed Jan 12, 2024
1 parent 1f41485 commit ca80529
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
13 changes: 13 additions & 0 deletions CoordinateConverter/DCS/Tools/FormAH64DTC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1061,13 +1061,20 @@ private void tbOwnshipCallsign_TextChanged(object objsender, EventArgs e)
toolTip.Hide(this);
tbOwnshipCallsign.BackColor = default;

if (string.IsNullOrEmpty(text))
{
data.OwnshipCallsign = null;
return;
}

string error = AH64DTCData.CheckDLCallSign(text);
if (!string.IsNullOrEmpty(error))
{
sender.BackColor = MainForm.ERROR_COLOR;
toolTip.Show(error, sender, sender.Width, 0, 5000);
return;
}

try
{
data.OwnshipCallsign = text;
Expand All @@ -1086,6 +1093,12 @@ private void tbOwnshipSubscriberID_TextChanged(object objsender, EventArgs e)
toolTip.Hide(this);
tbOwnshipCallsign.BackColor = default;

if (string.IsNullOrEmpty(text))
{
data.OwnshipSubscriberID = null;
return;
}

string error = AH64DTCData.CheckDLSubscriberID(text);
if (!string.IsNullOrEmpty(error))
{
Expand Down
2 changes: 1 addition & 1 deletion CoordinateConverter/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace CoordinateConverter
/// <seealso cref="Form" />
public partial class MainForm : Form
{
private readonly GitHub.Version VERSION = new GitHub.Version(0, 6, 1);
private readonly GitHub.Version VERSION = new GitHub.Version(0, 6, 2);

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
public static readonly Color ERROR_COLOR = Color.Pink;
Expand Down
1 change: 1 addition & 0 deletions CoordinateConverter/todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Add aircraft support (https://github.com/aronCiucu/DCSTheWay/tree/main/src/modul
- ADF Presets
- Valid range 100 - 2199.5 kHz
- Valid ID 1-3 alpha characters (no numbers, no other stuff)
- A/C Set stuff (LO/HI Warn)

- F18
- fetch if precise is selected (https://www.reddit.com/r/hoggit/comments/2ao01d/so_apparently_there_was_a_way_to_get_the_text_of/)
Expand Down
2 changes: 1 addition & 1 deletion Installer/Installer.wixproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="WixToolset.Sdk/4.0.2">
<PropertyGroup>
<DefineConstants>Version=0.6.1</DefineConstants>
<DefineConstants>Version=0.6.2</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<DefineConstants>Version=0.6.0</DefineConstants>
Expand Down

0 comments on commit ca80529

Please sign in to comment.