Skip to content

Commit 385a53d

Browse files
committed
Add option to return to build selection when crashing
1 parent a82a33b commit 385a53d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Launch.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ function launch:ShowPrompt(r, g, b, str, func)
357357
self.promptFunc = func or function(key)
358358
if key == "RETURN" or key == "ESCAPE" then
359359
return true
360+
elseif key == "F4" then
361+
self.main:SetMode("LIST")
362+
return true
360363
elseif key == "c" and IsKeyDown("CTRL") then
361364
local cleanStr = str:gsub("%^%d", "")
362365
Copy(cleanStr)
@@ -372,7 +375,7 @@ function launch:ShowErrMsg(fmt, ...)
372375
local version = self.versionNumber and
373376
"^8v"..self.versionNumber..(self.versionBranch and " "..self.versionBranch or "")
374377
or ""
375-
self:ShowPrompt(1, 0, 0, "^1Error:\n\n^0"..string.format(fmt, ...).."\n"..version.."\n^0Press Enter/Escape to dismiss, or F5 to restart the application.\nPress CTRL + C to copy error text.")
378+
self:ShowPrompt(1, 0, 0, "^1Error:\n\n^0"..string.format(fmt, ...).."\n"..version.."\n^0Press Enter/Escape to dismiss, F4 to return to build selection, or F5 to restart the application.\nPress CTRL + C to copy error text.")
376379
end
377380
end
378381

0 commit comments

Comments
 (0)