From 061963bc81bcd8117d7cb75f9abc5fea7efd4ada Mon Sep 17 00:00:00 2001 From: devl0rd Date: Wed, 22 Apr 2020 16:19:05 -0600 Subject: [PATCH] auto start streamer added --- SkyNX-Streamer/index.html | 30 ++++++++++++++++++------------ SkyNX-Streamer/js/settings.js | 10 ++++++++++ 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/SkyNX-Streamer/index.html b/SkyNX-Streamer/index.html index 346dd4c..619f0e9 100644 --- a/SkyNX-Streamer/index.html +++ b/SkyNX-Streamer/index.html @@ -53,10 +53,25 @@
diff --git a/SkyNX-Streamer/js/settings.js b/SkyNX-Streamer/js/settings.js index f8ad926..2b49606 100644 --- a/SkyNX-Streamer/js/settings.js +++ b/SkyNX-Streamer/js/settings.js @@ -81,13 +81,23 @@ function applyClientSettings() { ipcRenderer.send('installAudioDriver'); clientSettings.firstInstall = true; } + if (clientSettings.autoStartStreamer) { + connect(); + } + saveClientSettings(); } + $("#rainbowEnabled").on('change', function () { clientSettings.rainbowEnabled = $("#rainbowEnabled").prop("checked"); saveClientSettings(); applyClientSettings(); }); +$("#autoStart").on('change', function () { + clientSettings.autoStartStreamer = $("#autoStart").prop("checked"); + saveClientSettings(); + applyClientSettings(); +}); // $("#debugEnabled").on('change', function () { // clientSettings.debug = $("#debugEnabled").prop("checked"); // saveClientSettings();