Skip to content

Commit 3c586fa

Browse files
authored
Redirect user to build list menu on initial build load crash (#9493)
* 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. * FIX: disable the the feature when in dev mode for easier debugging
1 parent bff74c2 commit 3c586fa

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 and not self.devMode then
115+
main:SetMode("LIST")
116+
end
113117
self:ShowErrMsg("In 'OnFrame': %s", errMsg)
114118
end
115119
end

0 commit comments

Comments
 (0)