Event Ballons and Tray Icon improvements (#1561)
Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
This commit is contained in:
parent
fa7c16bd11
commit
dc967ccc7b
27 changed files with 415 additions and 11 deletions
|
|
@ -25,6 +25,7 @@ extern "C" {
|
|||
#include "stat_trackers.h"
|
||||
#include "stream.h"
|
||||
#include "sync.h"
|
||||
#include "system_tray.h"
|
||||
#include "thread_safe.h"
|
||||
#include "utility.h"
|
||||
|
||||
|
|
@ -1732,6 +1733,11 @@ namespace stream {
|
|||
|
||||
// If this is the last session, invoke the platform callbacks
|
||||
if (--running_sessions == 0) {
|
||||
#if defined SUNSHINE_TRAY && SUNSHINE_TRAY >= 1
|
||||
if (proc::proc.running()) {
|
||||
system_tray::update_tray_pausing(proc::proc.get_last_run_app_name());
|
||||
}
|
||||
#endif
|
||||
platf::streaming_will_stop();
|
||||
}
|
||||
|
||||
|
|
@ -1776,6 +1782,9 @@ namespace stream {
|
|||
// If this is the first session, invoke the platform callbacks
|
||||
if (++running_sessions == 1) {
|
||||
platf::streaming_will_start();
|
||||
#if defined SUNSHINE_TRAY && SUNSHINE_TRAY >= 1
|
||||
system_tray::update_tray_playing(proc::proc.get_last_run_app_name());
|
||||
#endif
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue