1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00

GTableView: Add ability to hide individual columns at view-level.

Use this in IRCClient to hide the "sender" column in the server message view
since everything in that view comes from the "Server" anyway.
This commit is contained in:
Andreas Kling 2019-03-20 13:35:11 +01:00
parent d17a91f185
commit 951377e93e
5 changed files with 41 additions and 3 deletions

View file

@ -246,7 +246,7 @@ void IRCClient::handle(const Message& msg, const String&)
void IRCClient::add_server_message(const String& text)
{
m_log->add_message(0, "Server", text);
m_log->add_message(0, "", text);
m_server_subwindow->did_add_message();
}
@ -354,7 +354,7 @@ void IRCClient::handle_ping(const Message& msg)
{
if (msg.arguments.size() < 0)
return;
m_log->add_message(0, "Server", "Ping? Pong!");
m_log->add_message(0, "", "Ping? Pong!");
send_pong(msg.arguments[0]);
}