UI: Add system tray icon to indicate when paused
This commit is contained in:
parent
6ab6fdffd1
commit
ac75ec1247
BIN
UI/forms/images/obs_paused.png
Normal file
BIN
UI/forms/images/obs_paused.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
@ -9,6 +9,7 @@
|
|||||||
<file>images/down.svg</file>
|
<file>images/down.svg</file>
|
||||||
<file>images/up.svg</file>
|
<file>images/up.svg</file>
|
||||||
<file>images/obs.png</file>
|
<file>images/obs.png</file>
|
||||||
|
<file>images/obs_paused.png</file>
|
||||||
<file>images/tray_active.png</file>
|
<file>images/tray_active.png</file>
|
||||||
<file>images/expand.svg</file>
|
<file>images/expand.svg</file>
|
||||||
<file>images/unlocked.svg</file>
|
<file>images/unlocked.svg</file>
|
||||||
|
@ -7471,6 +7471,10 @@ void OBSBasic::PauseRecording()
|
|||||||
pause->blockSignals(true);
|
pause->blockSignals(true);
|
||||||
pause->setChecked(true);
|
pause->setChecked(true);
|
||||||
pause->blockSignals(false);
|
pause->blockSignals(false);
|
||||||
|
|
||||||
|
if (trayIcon)
|
||||||
|
trayIcon->setIcon(QIcon(":/res/images/obs_paused.png"));
|
||||||
|
|
||||||
os_atomic_set_bool(&recording_paused, true);
|
os_atomic_set_bool(&recording_paused, true);
|
||||||
|
|
||||||
if (api)
|
if (api)
|
||||||
@ -7494,6 +7498,11 @@ void OBSBasic::UnpauseRecording()
|
|||||||
pause->blockSignals(true);
|
pause->blockSignals(true);
|
||||||
pause->setChecked(false);
|
pause->setChecked(false);
|
||||||
pause->blockSignals(false);
|
pause->blockSignals(false);
|
||||||
|
|
||||||
|
if (trayIcon)
|
||||||
|
trayIcon->setIcon(
|
||||||
|
QIcon(":/res/images/tray_active.png"));
|
||||||
|
|
||||||
os_atomic_set_bool(&recording_paused, false);
|
os_atomic_set_bool(&recording_paused, false);
|
||||||
|
|
||||||
if (api)
|
if (api)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user