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