@@ -639,6 +639,8 @@ void MainWindow::ConnectHotkeys()
639639 connect (m_hotkey_scheduler, &HotkeyScheduler::UnlockCursor, this , &MainWindow::UnlockCursor);
640640 connect (m_hotkey_scheduler, &HotkeyScheduler::TogglePauseHotkey, this , &MainWindow::TogglePause);
641641 connect (m_hotkey_scheduler, &HotkeyScheduler::ActivateChat, this , &MainWindow::OnActivateChat);
642+ connect (m_hotkey_scheduler, &HotkeyScheduler::CollapseChat, this , &MainWindow::OnCollapseChat);
643+ connect (m_hotkey_scheduler, &HotkeyScheduler::ExpandChat, this , &MainWindow::OnExpandChat);
642644 connect (m_hotkey_scheduler, &HotkeyScheduler::RequestGolfControl, this ,
643645 &MainWindow::OnRequestGolfControl);
644646 connect (m_hotkey_scheduler, &HotkeyScheduler::RefreshGameListHotkey, this ,
@@ -2050,6 +2052,18 @@ void MainWindow::OnActivateChat()
20502052 g_netplay_chat_ui->Activate ();
20512053}
20522054
2055+ void MainWindow::OnCollapseChat ()
2056+ {
2057+ if (g_netplay_chat_ui)
2058+ g_netplay_chat_ui->Collapse ();
2059+ }
2060+
2061+ void MainWindow::OnExpandChat ()
2062+ {
2063+ if (g_netplay_chat_ui)
2064+ g_netplay_chat_ui->Expand ();
2065+ }
2066+
20532067void MainWindow::OnRequestGolfControl ()
20542068{
20552069 auto client = Settings::Instance ().GetNetPlayClient ();
0 commit comments