From d79377a7123ae19f5cf3d3a43aa05a85a54ed13c Mon Sep 17 00:00:00 2001 From: Slendi Date: Sat, 20 Sep 2025 02:50:32 +0300 Subject: [PATCH] irc: restore TextViewer default buttons (scroll/find/Close); keep only custom Send button to avoid duplicate Close; fixes live updates Signed-off-by: Slendi --- main.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/main.lua b/main.lua index 575a0ae..289c982 100644 --- a/main.lua +++ b/main.lua @@ -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