irc: update titlebar when switching channels

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-09-20 01:41:33 +03:00
parent 736441c2e1
commit 8aae63b93d

View File

@@ -74,10 +74,15 @@ end
function IrcChatView:updateTitle()
local tgt = self._current_target
local new_title
if tgt and tgt ~= "*" then
self.title = tgt
new_title = tgt
else
self.title = self._server_label
new_title = self._server_label
end
self.title = new_title
if self.titlebar and self.titlebar.setTitle then
self.titlebar:setTitle(new_title)
end
end