From 749c89e26efb625009fa65a207c61fcdf741cc07 Mon Sep 17 00:00:00 2001 From: uramer Date: Sun, 29 Jan 2023 19:28:54 +0100 Subject: [PATCH] Add missing to_string --- components/lua_ui/content.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/lua_ui/content.lua b/components/lua_ui/content.lua index 79fd87c79e..6e536358a7 100644 --- a/components/lua_ui/content.lua +++ b/components/lua_ui/content.lua @@ -115,6 +115,9 @@ M.__newindex = function(self, key, value) error('Content can only contain tables') end end +M.__tostring = function(self) + return ('UiContent{%d layouts}'):format(#self) +end local function next(self, index) local v = rawget(self, index) if v then