From 58a8b608265aaabc5d2d8b1589d758b1a8b38d23 Mon Sep 17 00:00:00 2001 From: Quentin DECAUNES Date: Thu, 1 Aug 2019 18:51:00 +0200 Subject: [PATCH] fix: Notify user when no options are selected when applying settings. --- js/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/app.js b/js/app.js index 10ca772..f8503d8 100644 --- a/js/app.js +++ b/js/app.js @@ -85,6 +85,11 @@ function applyRyzenSettings() { } } + if (parameters.length === 0) { + notification('primary', 'Please add some options before applying ryzenAdj.'); + return; + } + if (!appSettings.get('retry')) { appSettings.set('retry', 2); notification('warning', 'Applying settings...');