From 86294ca1321afabc00f3245f03bb66e8759765c5 Mon Sep 17 00:00:00 2001 From: have-fun Date: Wed, 8 May 2024 23:17:49 +0200 Subject: [PATCH] chore: rename variable --- Yafc/Workspace/ProductionTable/ProductionTableView.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Yafc/Workspace/ProductionTable/ProductionTableView.cs b/Yafc/Workspace/ProductionTable/ProductionTableView.cs index 7640c672..0c958f25 100644 --- a/Yafc/Workspace/ProductionTable/ProductionTableView.cs +++ b/Yafc/Workspace/ProductionTable/ProductionTableView.cs @@ -296,9 +296,9 @@ private void BuildSolarPanelAccumulatorView(ImGui gui, RecipeRow recipe) { } } - private void ShowAccumulatorDropdown(ImGui gui, RecipeRow recipe, Entity oldAccumulator) => gui.ShowDropDown(imGui => { + private void ShowAccumulatorDropdown(ImGui gui, RecipeRow recipe, Entity currentAccumulator) => gui.ShowDropDown(imGui => { imGui.BuildInlineObjectListAndButton(Database.allAccumulators, DataUtils.DefaultOrdering, - newAccumulator => recipe.RecordUndo().ChangeVariant(oldAccumulator, newAccumulator), "Select accumulator", + newAccumulator => recipe.RecordUndo().ChangeVariant(currentAccumulator, newAccumulator), "Select accumulator", extra: x => DataUtils.FormatAmount(x.accumulatorCapacity, UnitOfMeasure.Megajoule)); });