Added button in menu to join to channel. (#724)

This commit is contained in:
23rd
2018-09-21 21:35:14 +03:00
committed by pajlada
parent a3a7317e62
commit 9a6650b56c
5 changed files with 29 additions and 2 deletions
+5
View File
@@ -105,6 +105,11 @@ Split::Split(QWidget *parent)
}
});
this->view_->joinToChannel.connect([this](QString twitchChannel) {
this->container_->appendNewSplit(false)->setChannel(
getApp()->twitch.server->getOrAddChannel(twitchChannel));
});
this->input_->textChanged.connect([=](const QString &newText) {
if (getSettings()->showEmptyInput) {
return;