mirror of
https://github.com/DevL0rd/SkyNX
synced 2025-02-17 01:38:24 +00:00
auto start streamer added
This commit is contained in:
parent
c9e838c908
commit
061963bc81
2 changed files with 28 additions and 12 deletions
|
@ -53,10 +53,25 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div id="settings" class="contentArea contentAreaScrollable customScroll" style="display: none;">
|
<div id="settings" class="contentArea contentAreaScrollable customScroll" style="display: none;">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="switch">
|
||||||
|
<input id="autoStart" type="checkbox">
|
||||||
|
<span class="slider round"></span>
|
||||||
|
</label>
|
||||||
|
<label class="form-check-label" for="autoStart">
|
||||||
|
Start streamer automatically
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="switch">
|
||||||
|
<input id="rainbowEnabled" type="checkbox">
|
||||||
|
<span class="slider round"></span>
|
||||||
|
</label>
|
||||||
|
<label class="form-check-label" for="rainbowEnabled">
|
||||||
|
Enable Rainbow Accents
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
<form class="form-group">
|
<form class="form-group">
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<button id="installScpVBusBtn" type="button" class="btn btn-dark btn-block">Install Controller</button>
|
<button id="installScpVBusBtn" type="button" class="btn btn-dark btn-block">Install Controller</button>
|
||||||
|
@ -79,15 +94,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<div class="form-group">
|
|
||||||
<label class="switch">
|
|
||||||
<input id="rainbowEnabled" type="checkbox">
|
|
||||||
<span class="slider round"></span>
|
|
||||||
</label>
|
|
||||||
<label class="form-check-label" for="rainbowEnabled">
|
|
||||||
Enable Rainbow Accents
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="statusbar" class="rainbowBackgroundColor2">
|
<div id="statusbar" class="rainbowBackgroundColor2">
|
||||||
|
|
|
@ -81,13 +81,23 @@ function applyClientSettings() {
|
||||||
ipcRenderer.send('installAudioDriver');
|
ipcRenderer.send('installAudioDriver');
|
||||||
clientSettings.firstInstall = true;
|
clientSettings.firstInstall = true;
|
||||||
}
|
}
|
||||||
|
if (clientSettings.autoStartStreamer) {
|
||||||
|
connect();
|
||||||
|
}
|
||||||
|
|
||||||
saveClientSettings();
|
saveClientSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#rainbowEnabled").on('change', function () {
|
$("#rainbowEnabled").on('change', function () {
|
||||||
clientSettings.rainbowEnabled = $("#rainbowEnabled").prop("checked");
|
clientSettings.rainbowEnabled = $("#rainbowEnabled").prop("checked");
|
||||||
saveClientSettings();
|
saveClientSettings();
|
||||||
applyClientSettings();
|
applyClientSettings();
|
||||||
});
|
});
|
||||||
|
$("#autoStart").on('change', function () {
|
||||||
|
clientSettings.autoStartStreamer = $("#autoStart").prop("checked");
|
||||||
|
saveClientSettings();
|
||||||
|
applyClientSettings();
|
||||||
|
});
|
||||||
// $("#debugEnabled").on('change', function () {
|
// $("#debugEnabled").on('change', function () {
|
||||||
// clientSettings.debug = $("#debugEnabled").prop("checked");
|
// clientSettings.debug = $("#debugEnabled").prop("checked");
|
||||||
// saveClientSettings();
|
// saveClientSettings();
|
||||||
|
|
Loading…
Add table
Reference in a new issue