Add Ctrl+F5 as a shortcut for reconnect() (#2215)

This commit is contained in:
mmb L
2020-11-22 21:28:07 +08:00
committed by GitHub
parent b79d5fa6f0
commit 44262ee2ec
5 changed files with 15 additions and 1 deletions
+8
View File
@@ -118,6 +118,9 @@ Split::Split(QWidget *parent)
// F5: reload emotes
createShortcut(this, "F5", &Split::reloadChannelAndSubscriberEmotes);
// CTRL+F5: reconnect
createShortcut(this, "CTRL+F5", &Split::reconnect);
// F10
createShortcut(this, "F10", [] {
auto *popup = new DebugPopup;
@@ -850,6 +853,11 @@ void Split::reloadChannelAndSubscriberEmotes()
}
}
void Split::reconnect()
{
this->getChannel()->reconnect();
}
void Split::dragEnterEvent(QDragEnterEvent *event)
{
if (getSettings()->imageUploaderEnabled &&