Skip to content

Commit

Permalink
fix: if AI radial will have zero options ready - it will be auto-clos…
Browse files Browse the repository at this point in the history
…ed now.
  • Loading branch information
pa.pecherskij committed Jan 16, 2025
1 parent 5e99756 commit bd53939
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Content.Client/Silicons/StationAi/StationAiMenu.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ private void BuildButtons()
{
var ev = new GetStationAiRadialEvent();
_entManager.EventBus.RaiseLocalEvent(_tracked, ref ev);
if (ev.Actions.Count == 0)
{
Close(); // todo: move accumulation of buttons to BUI and put popup with feedback there
return;
}

var main = FindControl<RadialContainer>("Main");
main.DisposeAllChildren();
Expand Down

0 comments on commit bd53939

Please sign in to comment.