fix(ui-ext): send title to newly-attached UI

This commit is contained in:
zeertzjq
2023-05-11 10:48:48 +08:00
parent ee986ee044
commit 43d66c0ebb
4 changed files with 14 additions and 5 deletions

View File

@@ -117,6 +117,12 @@ local function screen_tests(linegrid)
screen:expect(function()
eq(expected, screen.title)
end)
screen:detach()
screen.title = nil
screen:attach()
screen:expect(function()
eq(expected, screen.title)
end)
end)
end)
@@ -128,6 +134,12 @@ local function screen_tests(linegrid)
screen:expect(function()
eq(expected, screen.icon)
end)
screen:detach()
screen.icon = nil
screen:attach()
screen:expect(function()
eq(expected, screen.icon)
end)
end)
end)