Skip to content

Commit c550926

Browse files
committed
FIX: redirect user to build list menu on initial build load crash
Currently if a build crashes on initial load the user will be stuck in the OnError screen. This is especially problematic if the build is set to default load on startup essentially locking the user out of POB. This PR redirect the user to the build list menu if a build crashes on initial load allowing the user to dismiss the error and load a different build.
1 parent fb6cd05 commit c550926

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Launch.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ function launch:OnFrame()
110110
if self.main.OnFrame then
111111
local errMsg = PCall(self.main.OnFrame, self.main)
112112
if errMsg then
113+
-- Send user to build list menu if a build crashes on initial load
114+
if self.main.modes.BUILD.outputRevision == 1 and self.main.modes.BUILD.buildFlag then
115+
main:SetMode("LIST")
116+
end
113117
self:ShowErrMsg("In 'OnFrame': %s", errMsg)
114118
end
115119
end

0 commit comments

Comments
 (0)