mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 10:03:28 +07:00
Fixed default settings for reapply periodically.
This commit is contained in:
parent
8ee6fe07cc
commit
cb61f88357
@ -116,10 +116,13 @@ function preFillSettings() {
|
||||
notification('danger', "Path to ryzenadj.exe is wrong, please fix it in settings tab.");
|
||||
}
|
||||
const settings = require('electron-settings');
|
||||
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');
|
||||
document.getElementById('reapply_periodically').value = settings.get('settings.reapply_periodically');
|
||||
document.getElementById('reapply_periodically_range').value = settings.get('settings.reapply_periodically');
|
||||
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');
|
||||
|
||||
seconds = parseInt(settings.get('settings.reapply_periodically'));
|
||||
seconds = seconds >= 0 ? seconds : 0;
|
||||
document.getElementById('reapply_periodically').value = seconds;
|
||||
document.getElementById('reapply_periodically_range').value = seconds;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user