fix: Notify user when no options are selected when applying settings.

This commit is contained in:
Quentin DECAUNES 2019-08-01 18:51:00 +02:00 committed by Quentin “Storm1er” Decaunes
parent 8fd02203c7
commit 58a8b60826

View File

@ -85,6 +85,11 @@ function applyRyzenSettings() {
} }
} }
if (parameters.length === 0) {
notification('primary', 'Please add some options before applying ryzenAdj.');
return;
}
if (!appSettings.get('retry')) { if (!appSettings.get('retry')) {
appSettings.set('retry', 2); appSettings.set('retry', 2);
notification('warning', 'Applying settings...'); notification('warning', 'Applying settings...');