mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 10:03:28 +07:00
Hide auto start for now as it won't work.
This commit is contained in:
parent
6a459ba060
commit
d73acd55cd
@ -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>
|
||||
|
@ -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 });
|
||||
// });
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user