Skip to content

Commit

Permalink
Change PmdgHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
Oudoum committed Jun 18, 2024
1 parent 0b1ee30 commit 1d95fbb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions DeviceInterfaceManager/ViewModels/ProfileCreatorViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -744,9 +744,8 @@ private async Task StartProfilesAsync(CancellationToken token)

await _simConnectClient.ConnectAsync(token);

if (!token.IsCancellationRequested)
if (!token.IsCancellationRequested && _simConnectClient.SimConnect is not null)
{
_simConnectClient.PmdgHelper?.Init(ProfileCreatorModel);
_profile = new Profile(_simConnectClient, ProfileCreatorModel, InputOutputDevice);
SetInfoBar(ProfileCreatorModel?.ProfileName + " started.", InfoBarSeverity.Informational);
return;
Expand Down

0 comments on commit 1d95fbb

Please sign in to comment.