irc: restore TextViewer default buttons (scroll/find/Close); keep only custom Send button to avoid duplicate Close; fixes live updates

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-09-20 02:50:32 +03:00
parent 2f061e20dc
commit d79377a712

View File

@@ -23,7 +23,7 @@ local lfs = require("libs/libkoreader-lfs")
local IrcChatView = TextViewer:extend{
title = _("IRC Chat"),
text = "",
add_default_buttons = false,
add_default_buttons = true,
monospace_font = true,
text_type = "code",
keep_running = true, -- keep connection alive when UI is closed
@@ -57,12 +57,6 @@ function IrcChatView:init(reinit)
self:promptSendMessage()
end,
},
{
text = _("Close"),
callback = function()
self:onClose()
end,
},
}
}
-- Buffers & title