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:
8
main.lua
8
main.lua
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user