Skip to content

Commit 9821da4

Browse files
author
LocalIdentity
committed
Fix for when a crash occurs in a popup
When a crash happened in a popup, it would not clear the popup on pressing f4 so would still be stuck in a crash loop e.g. Crash in the item set manager popup UI We now clear the popup events and input events just incase
1 parent 385a53d commit 9821da4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/Launch.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,11 @@ function launch:ShowPrompt(r, g, b, str, func)
358358
if key == "RETURN" or key == "ESCAPE" then
359359
return true
360360
elseif key == "F4" then
361-
self.main:SetMode("LIST")
361+
if self.main then
362+
self.main.popups = { }
363+
self.main.inputEvents = { }
364+
self.main:SetMode("LIST")
365+
end
362366
return true
363367
elseif key == "c" and IsKeyDown("CTRL") then
364368
local cleanStr = str:gsub("%^%d", "")

0 commit comments

Comments
 (0)