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