mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
this better compile
This commit is contained in:
parent
5fcf42f1fc
commit
b83c8e2735
2 changed files with 6 additions and 13 deletions
|
@ -150,14 +150,7 @@ void OpenStreamlink(const QString &channelURL, const QString &quality, QStringLi
|
||||||
arguments << quality;
|
arguments << quality;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
bool res = QProcess::startDetached(getStreamlinkProgram() + " " + QString(arguments.join(' ')));
|
||||||
// This only works in Qt 5.10 and above
|
|
||||||
auto p = createStreamlinkProcess();
|
|
||||||
p->setArguments(arguments);
|
|
||||||
bool res = p->startDetached();
|
|
||||||
*/
|
|
||||||
|
|
||||||
bool res = QProcess::startDetached(getStreamlinkProgram(), arguments);
|
|
||||||
|
|
||||||
if (!res) {
|
if (!res) {
|
||||||
showStreamlinkNotFoundError();
|
showStreamlinkNotFoundError();
|
||||||
|
|
|
@ -129,11 +129,11 @@ Split::Split(QWidget *parent)
|
||||||
this->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
|
this->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
|
||||||
|
|
||||||
this->managedConnect(altPressedStatusChanged, [this](bool status) {
|
this->managedConnect(altPressedStatusChanged, [this](bool status) {
|
||||||
if (status && this->isMouseOver) {
|
// if (status && this->isMouseOver) {
|
||||||
this->overlay->show();
|
// this->overlay->show();
|
||||||
} else {
|
// } else {
|
||||||
this->overlay->hide();
|
// this->overlay->hide();
|
||||||
}
|
// }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue