Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Launch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,9 @@ function launch:ShowPrompt(r, g, b, str, func)
self.promptFunc = func or function(key)
if key == "RETURN" or key == "ESCAPE" then
return true
elseif key == "c" and IsKeyDown("CTRL") then
local cleanStr = str:gsub("%^%d", "")
Copy(cleanStr)
elseif key == "F5" then
self.doRestart = "Restarting..."
return true
Expand All @@ -363,7 +366,7 @@ function launch:ShowErrMsg(fmt, ...)
local version = self.versionNumber and
"^8v"..self.versionNumber..(self.versionBranch and " "..self.versionBranch or "")
or ""
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.")
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.")
end
end

Expand Down