Actually save stream settings to local storage

After some refactoring, I lost the code that actually
saved stream settings to local storage.
This commit restores that functionality.
This commit is contained in:
Richard 2021-05-05 16:19:43 +01:00
parent 82a277b04c
commit 0bdb5b4721

View file

@ -95,13 +95,22 @@ export default {
// Cache the stream settings to local storage for persistence
// (the next 3 functions all relate to this)
disableStream: function(newValue) {
console.log(`disableStream updated to ${newValue} and saved in local storage`);
console.log(
`disableStream updated to ${newValue} and saved in local storage`
);
this.setLocalStorageObj("disableStream", newValue);
},
autoGpuPreview: function(newValue) {
console.log(`GPU preview updated to ${newValue} and saved in local storage`);
console.log(
`GPU preview updated to ${newValue} and saved in local storage`
);
this.setLocalStorageObj("autoGpuPreview", newValue);
},
trackWindow: function(newValue) {
console.log(`trackWindow updated to ${newValue} and saved in local storage`);
console.log(
`trackWindow updated to ${newValue} and saved in local storage`
);
this.setLocalStorageObj("trackWindow", newValue);
}
},