Hide auto start for now as it won't work.

This commit is contained in:
Quentin DECAUNES 2019-03-11 12:55:37 +01:00 committed by Quentin DECAUNES
parent 6a459ba060
commit d73acd55cd
2 changed files with 11 additions and 11 deletions

View File

@ -98,8 +98,8 @@
<li class="uk-margin-top uk-margin-bottom uk-container" id="presetTab"></li>
<li class="uk-margin-top uk-margin-bottom uk-container">
<h3>Auto start with system:</h3>
<label><input class="uk-checkbox" type="checkbox" id="start_at_boot"> When checked, Ryzen Controller will start on system login.</label>
<!-- <h3>Auto start with system:</h3> -->
<!-- <label><input class="uk-checkbox" type="checkbox" id="start_at_boot"> When checked, Ryzen Controller will start on system login.</label> -->
<h3>Auto apply on launch:</h3>
<label><input class="uk-checkbox" type="checkbox" id="apply_last_settings_on_launch"> When checked, Ryzen Controller will try to apply latest used settings on launch.</label>
<h3>Minimize to tray:</h3>

View File

@ -116,7 +116,7 @@ function preFillSettings() {
notification('danger', "Path to ryzenadj.exe is wrong, please fix it in settings tab.");
}
const settings = require('electron-settings');
document.getElementById('start_at_boot').checked = !!settings.get('settings.start_at_boot');
// document.getElementById('start_at_boot').checked = !!settings.get('settings.start_at_boot');
document.getElementById('apply_last_settings_on_launch').checked = !!settings.get('settings.apply_last_settings_on_launch');
document.getElementById('minimize_to_tray').checked = !!settings.get('settings.minimize_to_tray');
@ -229,14 +229,14 @@ function registerEventListenerForSettingsInput() {
reapply_periodically: reapply_periodically.value
});
});
var start_at_boot = document.getElementById('start_at_boot');
start_at_boot.addEventListener('change', function() {
settings.set('settings', {
...settings.get('settings'),
start_at_boot: !!start_at_boot.checked
});
require('electron').remote.app.setLoginItemSettings({ openAtLogin: !!start_at_boot.checked });
});
// var start_at_boot = document.getElementById('start_at_boot');
// start_at_boot.addEventListener('change', function() {
// settings.set('settings', {
// ...settings.get('settings'),
// start_at_boot: !!start_at_boot.checked
// });
// require('electron').remote.app.setLoginItemSettings({ openAtLogin: !!start_at_boot.checked });
// });
}
/**