mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-05 15:16:13 -05:00
UI: Add confirmation when clicking stop stream
I decided to add a confirmation message box simply to prevent cases where users may accidentally click "Stop Streaming".
This commit is contained in:
@@ -3058,6 +3058,12 @@ void OBSBasic::StartStreaming()
|
||||
|
||||
void OBSBasic::StopStreaming()
|
||||
{
|
||||
QMessageBox::StandardButton button = QMessageBox::question(this,
|
||||
QTStr("Basic.Main.StopStreaming.Title"),
|
||||
QTStr("Basic.Main.StopStreaming.Text"));
|
||||
if (button == QMessageBox::No)
|
||||
return;
|
||||
|
||||
SaveProject();
|
||||
|
||||
if (outputHandler->StreamingActive())
|
||||
|
||||
Reference in New Issue
Block a user