Add notice about no self-restarts on windows

This commit is contained in:
Harvey Tindall
2020-09-05 21:52:23 +01:00
parent d31254b18e
commit f5f2a0f190
5 changed files with 33 additions and 2 deletions
+4 -1
View File
@@ -1120,7 +1120,10 @@ document.getElementById('settingsSave').onclick = function() {
}
if (restart_setting_changed) {
document.getElementById('applyRestarts').onclick = function(){ sendConfig('restartModal'); };
document.getElementById('applyAndRestart').onclick = function(){ sendConfig('restartModal', restart=true); };
let restartButton = document.getElementById('applyAndRestart')
if (restartButton) {
restartButton.onclick = function(){ sendConfig('restartModal', restart=true); };
}
settingsModal.hide();
restartModal.show();
} else if (settings_changed) {