1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-10 02:35:58 +01:00

Save blackboard mode and activity detection across reloads.

This commit is contained in:
Juliusz Chroboczek 2021-01-23 01:01:53 +01:00
parent fb17778ba6
commit 8a44726f89

View file

@ -227,9 +227,19 @@ function reflectSettings() {
store = true; store = true;
} }
getInputElement('activitybox').checked = settings.activityDetection; if(settings.hasOwnProperty('blackboardMode')) {
getInputElement('blackboardbox').checked = settings.blackboardMode;
} else {
settings.blackboardMode = getInputElement('blackboardbox').checked;
store = true;
}
getInputElement('blackboardbox').checked = settings.blackboardMode; if(settings.hasOwnProperty('activityDetection')) {
getInputElement('activitybox').checked = settings.activityDetection;
} else {
settings.activityDetection = getInputElement('activitybox').checked;
store = true;
}
if(store) if(store)
storeSettings(settings); storeSettings(settings);