From d73acd55cde4d86265f92af16738ec96d0ce0bd0 Mon Sep 17 00:00:00 2001 From: Quentin DECAUNES Date: Mon, 11 Mar 2019 12:55:37 +0100 Subject: [PATCH] Hide auto start for now as it won't work. --- index.html | 4 ++-- js/methods.js | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/index.html b/index.html index 060603f..49c889b 100644 --- a/index.html +++ b/index.html @@ -98,8 +98,8 @@
  • -

    Auto start with system:

    - + +

    Auto apply on launch:

    Minimize to tray:

    diff --git a/js/methods.js b/js/methods.js index aaa9c18..812838e 100644 --- a/js/methods.js +++ b/js/methods.js @@ -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 }); + // }); } /**