Skip to content

Commit

Permalink
Hide incomplete 'Add Item' feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
Deweh committed Jun 20, 2021
1 parent 4ec626a commit 252d98e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions CP2077SaveEditor/Views/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -900,11 +900,14 @@ private void inventoryListView_Click (object sender, MouseEventArgs e)
}

var contextMenu = new ContextMenuStrip();
contextMenu.Items.Add("New Item").Click += (object sender, EventArgs e) =>
if (wipEnabled)
{
var inventory = activeSaveFile.GetInventory(1);
inventory.Items.Add(inventory.Items.Last().CreateSimpleItem());
};
contextMenu.Items.Add("New Item").Click += (object sender, EventArgs e) =>
{
var inventory = activeSaveFile.GetInventory(1);
inventory.Items.Add(inventory.Items.Last().CreateSimpleItem());
};
}

if (containerID == "1")
{
Expand Down

0 comments on commit 252d98e

Please sign in to comment.