Skip to content

Commit 183da06

Browse files
Co-authored-by: vaisest <vaisest@users.noreply.github.com>
1 parent e0215b3 commit 183da06

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/Launch.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,13 @@ function launch:ShowPrompt(r, g, b, str, func)
361361
self.promptFunc = func or function(key)
362362
if key == "RETURN" or key == "ESCAPE" then
363363
return true
364+
elseif key == "F4" then
365+
if self.main then
366+
self.main.popups = { }
367+
self.main.inputEvents = { }
368+
self.main:SetMode("LIST")
369+
end
370+
return true
364371
elseif key == "c" and IsKeyDown("CTRL") then
365372
local cleanStr = str:gsub("%^%d", "")
366373
Copy(cleanStr)
@@ -376,7 +383,7 @@ function launch:ShowErrMsg(fmt, ...)
376383
local version = self.versionNumber and
377384
"^8v"..self.versionNumber..(self.versionBranch and " "..self.versionBranch or "")
378385
or ""
379-
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.")
386+
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.")
380387
end
381388
end
382389

0 commit comments

Comments
 (0)