Add an indicator in the title bar if Streamer Mode is active (#4410)

This commit is contained in:
Mm2PL
2023-05-27 10:38:25 +00:00
committed by GitHub
parent 1bc423d9c4
commit c6c884df70
17 changed files with 163 additions and 2 deletions
+4
View File
@@ -71,6 +71,7 @@ bool isInStreamerMode()
p.exitStatus() == QProcess::NormalExit)
{
cache = (p.exitCode() == 0);
getApp()->streamerModeChanged.invoke();
return (p.exitCode() == 0);
}
@@ -89,6 +90,7 @@ bool isInStreamerMode()
qCWarning(chatterinoStreamerMode) << "pgrep execution timed out!";
cache = false;
getApp()->streamerModeChanged.invoke();
return false;
#endif
@@ -122,6 +124,7 @@ bool isInStreamerMode()
if (broadcastingBinaries().contains(processName))
{
cache = true;
getApp()->streamerModeChanged.invoke();
return true;
}
}
@@ -133,6 +136,7 @@ bool isInStreamerMode()
}
cache = false;
getApp()->streamerModeChanged.invoke();
#endif
return false;
}