Skip to content

Commit

Permalink
fix: show create config button also if config exists, but the plc con…
Browse files Browse the repository at this point in the history
…fig does not
  • Loading branch information
iadonkey authored Dec 22, 2023
1 parent be2c3a0 commit a9566a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TwinpackVsixShared/Dialogs/CatalogWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,8 @@ public async Task LoadPlcConfigAsync(CancellationToken cancellationToken)
_plcConfig = await ConfigPlcProjectFactory.CreateAsync(_context.Solution, _plc, _twinpackServer, cancellationToken);
}

IsCreateConfigVisible = config == null;
IsMigrateConfigVisible = config != null && _plcConfig?.Packages?.Any() == false && _plcConfig.Frameworks?.Zeugwerk?.References?.Any() == true;
IsCreateConfigVisible = config == null || _plcConfig == null;
IsMigrateConfigVisible = config != null && _plcConfig?.Packages?.Any() == false && _plcConfig?.Frameworks?.Zeugwerk?.References?.Any() == true;
IsConfigured = _plcConfig != null;
}
catch (Exception ex)
Expand Down

0 comments on commit a9566a5

Please sign in to comment.