@@ -41,7 +41,8 @@ public ShipyardConsoleMenu()
4141 Categories . OnItemSelected += OnCategoryItemSelected ;
4242 Classes . OnItemSelected += OnClassItemSelected ;
4343 Engines . OnItemSelected += OnEngineItemSelected ;
44- SellShipButton . OnPressed += ( args ) => { OnSellShip ? . Invoke ( args ) ; } ;
44+ SellShipButton . OnConfirming += OnStartConfirmingPurchaseOrSell ;
45+ SellShipButton . OnPressed += ( args ) => { _currentlyConfirmingButton = null ; OnSellShip ? . Invoke ( args ) ; } ;
4546 }
4647
4748
@@ -147,7 +148,7 @@ private void AddVesselsToControls(IEnumerable<VesselPrototype?> vessels, string
147148 Guidebook = { Disabled = prototype . GuidebookPage is null , TooltipDelay = 0.2f , ToolTip = prototype . Description } ,
148149 Price = { Text = priceText } ,
149150 } ;
150- vesselEntry . Purchase . OnConfirming += OnStartConfirmingPurchase ;
151+ vesselEntry . Purchase . OnConfirming += OnStartConfirmingPurchaseOrSell ;
151152 vesselEntry . Purchase . OnPressed += ( args ) => { _currentlyConfirmingButton = null ; OnOrderApproved ? . Invoke ( args ) ; } ;
152153 Vessels . AddChild ( vesselEntry ) ;
153154 }
@@ -156,7 +157,7 @@ private void AddVesselsToControls(IEnumerable<VesselPrototype?> vessels, string
156157 /// <summary>
157158 /// Confirming handler: ensures that only one button is confirming at a time.
158159 /// </summary>
159- private void OnStartConfirmingPurchase ( ButtonEventArgs args )
160+ private void OnStartConfirmingPurchaseOrSell ( ButtonEventArgs args )
160161 {
161162 if ( args . Button is not ConfirmButton confirmButton )
162163 return ;
0 commit comments