Skip to content

Commit f46655a

Browse files
committed
Fix crash when pasting item from GeForce Now
1 parent 3d3800f commit f46655a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Classes/ItemsTab.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,12 +1059,12 @@ function ItemsTabClass:Draw(viewPort, inputEvents)
10591059
if event.type == "KeyDown" then
10601060
if event.key == "v" and IsKeyDown("CTRL") then
10611061
local newItem = Paste()
1062-
if newItem:find("{ ", 0, true) then
1063-
main:OpenConfirmPopup("Warning", "\"Advanced Item Descriptions\" (Ctrl+Alt+c) are unsupported.\n\nAbort paste?", "OK", function()
1064-
self:SetDisplayItem()
1065-
end)
1066-
end
10671062
if newItem then
1063+
if newItem:find("{ ", 0, true) then
1064+
main:OpenConfirmPopup("Warning", "\"Advanced Item Descriptions\" (Ctrl+Alt+c) are unsupported.\n\nAbort paste?", "OK", function()
1065+
self:SetDisplayItem()
1066+
end)
1067+
end
10681068
self:CreateDisplayItemFromRaw(newItem, true)
10691069
end
10701070
elseif event.key == "e" then

0 commit comments

Comments
 (0)