Add debug hotkey for test sub messages (#4037)

This commit is contained in:
Felanbird
2022-10-02 17:17:32 -04:00
committed by GitHub
parent 54129f76a3
commit 766a30240d
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -249,6 +249,14 @@ void Window::addDebugStuff(HotkeyController::HotkeyMap &actions)
getApp()->twitch->addFakeMessage(msg);
return "";
});
actions.emplace("addSubMessage", [=](std::vector<QString>) -> QString {
const auto &messages = getSampleSubMessages();
static int index = 0;
const auto &msg = messages[index++ % messages.size()];
getApp()->twitch->addFakeMessage(msg);
return "";
});
#endif
}