Skip to content

Commit

Permalink
Replace Delete with #spawnmenu.menu.delete (#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
DBotThePony authored Apr 2, 2020
1 parent 75798d6 commit 38f8003
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ if ( CLIENT ) then
icon.OpenMenu = function( icon )

local menu = DermaMenu()
menu:AddOption( "Delete", function() icon:Remove() hook.Run( "SpawnlistContentChanged", icon ) end )
menu:AddOption( "#spawnmenu.menu.delete", function() icon:Remove() hook.Run( "SpawnlistContentChanged", icon ) end )
menu:Open()

end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ hook.Add( "SpawnlistOpenGenericMenu", "SpawnlistOpenGenericMenu", function( canv
local selected = canvas:GetSelectedChildren()

local menu = DermaMenu()
menu:AddOption( "Delete", function()
menu:AddOption( "#spawnmenu.menu.delete", function()

for k, v in pairs( selected ) do
v:Remove()
Expand Down

0 comments on commit 38f8003

Please sign in to comment.