ingame/housingeditor/housingeditorhud.lua:311 -- HOUSING_EDITOR_HUD_SCENE_GROUP:RegisterCallback("StateChange", function(oldState, newState)
if newState == SCENE_GROUP_HIDDEN then
local currentMode = GetHousingEditorMode()
if currentMode ~= HOUSING_EDITOR_MODE_BROWSE and currentMode ~= HOUSING_EDITOR_MODE_PATH then
HousingEditorRequestModeChange(HOUSING_EDITOR_MODE_DISABLED)
PlaySound(SOUNDS.HOUSING_EDITOR_CLOSED)
end
end
end)