mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
IRC client setttings, Terminal settings, more WM settings
This commit is contained in:
parent
63486b8438
commit
e3f81bce49
13 changed files with 89 additions and 53 deletions
|
@ -52,12 +52,14 @@ void IRCAppWindow::setup_client()
|
|||
m_client.join_channel("#test");
|
||||
};
|
||||
|
||||
GInputBox input_box("Enter server:", "Connect to server", this);
|
||||
auto result = input_box.exec();
|
||||
if (result == GInputBox::ExecCancel)
|
||||
::exit(0);
|
||||
if (m_client.hostname() == "none") {
|
||||
GInputBox input_box("Enter server:", "Connect to server", this);
|
||||
auto result = input_box.exec();
|
||||
if (result == GInputBox::ExecCancel)
|
||||
::exit(0);
|
||||
|
||||
m_client.set_server(input_box.text_value(), 6667);
|
||||
m_client.set_server(input_box.text_value(), 6667);
|
||||
}
|
||||
update_title();
|
||||
bool success = m_client.connect();
|
||||
ASSERT(success);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue