1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:17:35 +00:00

IRCClient: Automatically disable/enable GUI actions upon window change

Toolbar and menu items related to channel operations are now enabled
only when the active window is a channel.
This commit is contained in:
Brendan Coles 2020-04-02 13:19:15 +00:00 committed by Andreas Kling
parent 855f9286fa
commit 526386a6ba
2 changed files with 12 additions and 13 deletions

View file

@ -48,7 +48,7 @@ private:
void setup_menus();
void setup_widgets();
void update_title();
void update_part_action();
void update_gui_actions();
NonnullRefPtr<IRCWindow> create_window(void* owner, IRCWindow::Type, const String& name);
NonnullRefPtr<IRCClient> m_client;