Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fix
Browse files Browse the repository at this point in the history
schwiti6190 committed Jan 8, 2025
1 parent 629bd70 commit b0e29f3
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions scripts/editor/CourseEditor.lua
Original file line number Diff line number Diff line change
@@ -164,6 +164,9 @@ function CourseEditor:onClickLaneOffsetSetting(closure, ignoreDialog)
end

function CourseEditor:onClickExit(callbackFunc)
if not self.file then
printCallstack()
end
YesNoDialog.show(
function (self, clickOk)
self:deactivate(clickOk)
2 changes: 1 addition & 1 deletion scripts/gui/pages/CpConstructionFrame.lua
Original file line number Diff line number Diff line change
@@ -199,8 +199,8 @@ function CpConstructionFrame:requestClose(callback)
CpConstructionFrame:superClass().requestClose(self, callback)
self.editor:onClickExit(function ()
self.requestCloseCallback()
self.cpMenu:updatePages()
self.requestCloseCallback = function () end
self.cpMenu:updatePages()
end)
return false
end

0 comments on commit b0e29f3

Please sign in to comment.