Skip to content

Commit 9a8e7e3

Browse files
committed
The Frontier API can now establish a new connection while VoiceAttack is running.
1 parent 1338e2f commit 9a8e7e3

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Full details of the variables available for each noted event, and VoiceAttack in
99
* The `Body` object unix timestamp property `footfalled` has been revised to record your first footfall regardless of whether another commander had already set foot on the body.
1010
* The `Organic` object has been revised to include a credit `value` property (set whenever the species is identified and when organic data is sold).
1111
* The `Organic` object has been revised to include a credit `bonus` property (set when you have registered a first footfall on the body and when organic data is sold).
12+
* The Frontier API can now establish a new connection while VoiceAttack is running.
1213
* Events
1314
* `Codex entry` event revised to include a `newRegionEntry` property which identifies a new personal discovery for the current region. The `newEntry` now indicates whether this is a new personal discovery galaxy-wide (since the start of tracking, i.e. the installation of this release)
1415
* `Hand weapon purchased` added.

EddiUI/FrontierApiTab.xaml.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using EddiCompanionAppService;
22
using EddiConfigService;
3-
using EddiCore;
43
using EddiSpeechService;
54
using System;
65
using System.Security.Principal;
@@ -49,9 +48,8 @@ private void setStatusInfo ()
4948
case CompanionAppService.State.ConnectionLost:
5049
companionAppStatusValue.Text = Properties.Resources.frontierApiNotConnected;
5150
companionAppButton.Content = Properties.Resources.login;
52-
companionAppButton.IsEnabled = !EDDI.Instance.FromVA;
53-
companionAppText.Text =
54-
!EDDI.Instance.FromVA ? "" : Properties.Resources.frontier_api_cant_login_from_va;
51+
companionAppButton.IsEnabled = true;
52+
companionAppText.Text = "";
5553
break;
5654
case CompanionAppService.State.AwaitingCallback:
5755
companionAppStatusValue.Text = Properties.Resources.frontierApiConnecting;
@@ -97,10 +95,6 @@ private void companionAppClicked ( object sender, RoutedEventArgs e )
9795
// Logout from the companion EddiApplication and start again
9896
CompanionAppService.Instance.Logout();
9997
await SpeechService.Instance.SayAsync( null, Properties.Resources.frontier_api_reset, 0 ).ConfigureAwait(true);
100-
if ( EDDI.Instance.FromVA )
101-
{
102-
await SpeechService.Instance.SayAsync( null, Properties.Resources.frontier_api_cant_login_from_va, 0 ).ConfigureAwait(true);
103-
}
10498
}
10599
} );
106100
}

0 commit comments

Comments
 (0)