mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-28 02:34:58 +08:00
UI: Track recording state in OBSBasic
Avoid using controls dock buttons for recording states. Use signals and OBSBasic member variables instead.
This commit is contained in:
@@ -677,6 +677,10 @@ private:
|
||||
|
||||
void UpdatePreviewOverflowSettings();
|
||||
|
||||
bool recordingStarted = false;
|
||||
bool isRecordingPausable = false;
|
||||
bool recordingPaused = false;
|
||||
|
||||
bool restartingVCam = false;
|
||||
|
||||
public slots:
|
||||
@@ -881,6 +885,7 @@ private:
|
||||
|
||||
void AutoRemux(QString input, bool no_show = false);
|
||||
|
||||
void UpdateIsRecordingPausable();
|
||||
void UpdatePause(bool activate = true);
|
||||
void UpdateReplayBuffer(bool activate = true);
|
||||
|
||||
@@ -1251,6 +1256,12 @@ public slots:
|
||||
void UpdateContextBarVisibility();
|
||||
|
||||
signals:
|
||||
/* Recording signals */
|
||||
void RecordingStarted();
|
||||
void RecordingPaused();
|
||||
void RecordingUnpaused();
|
||||
void RecordingStopped();
|
||||
|
||||
/* Studio Mode signal */
|
||||
void PreviewProgramModeChanged(bool enabled);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user