fix
This commit is contained in:
parent
06412b182e
commit
e462dc2990
|
@ -111,6 +111,7 @@ setInterval(() => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add about text in settings
|
||||||
if (
|
if (
|
||||||
document.getElementsByClassName("dirscordScreenaudioAboutText").length == 0
|
document.getElementsByClassName("dirscordScreenaudioAboutText").length == 0
|
||||||
) {
|
) {
|
||||||
|
@ -123,4 +124,8 @@ setInterval(() => {
|
||||||
el.appendChild(aboutEl);
|
el.appendChild(aboutEl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove stream settings if stream is active
|
||||||
|
document.getElementById("manage-streams-change-windows")?.remove();
|
||||||
|
document.querySelector(`[aria-label="Stream Settings"]`)?.remove();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
|
@ -84,7 +84,7 @@ void DiscordPage::stopVirtmic() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void DiscordPage::startVirtmic(QString target) {
|
void DiscordPage::startVirtmic(QString target) {
|
||||||
if (target != "") {
|
if (target != "None") {
|
||||||
qDebug() << "[virtmic] Starting Virtmic with target" << target;
|
qDebug() << "[virtmic] Starting Virtmic with target" << target;
|
||||||
m_virtmicProcess.start(QApplication::arguments()[0], {"--virtmic", target});
|
m_virtmicProcess.start(QApplication::arguments()[0], {"--virtmic", target});
|
||||||
}
|
}
|
||||||
|
@ -111,7 +111,7 @@ void DiscordPage::startStream(QString target, uint width, uint height,
|
||||||
stopVirtmic();
|
stopVirtmic();
|
||||||
startVirtmic(target);
|
startVirtmic(target);
|
||||||
// Wait a bit for the virtmic to start
|
// Wait a bit for the virtmic to start
|
||||||
QTimer::singleShot(target == "" ? 0 : 200, [=]() {
|
QTimer::singleShot(target == "None" ? 0 : 200, [=]() {
|
||||||
runJavaScript(QString("window.discordScreenaudioStartStream(%1, %2, %3);")
|
runJavaScript(QString("window.discordScreenaudioStartStream(%1, %2, %3);")
|
||||||
.arg(width)
|
.arg(width)
|
||||||
.arg(height)
|
.arg(height)
|
||||||
|
|
Loading…
Reference in New Issue