Remove profile without popup when shift key is pressed

Also removes duplicate click listener.
This commit is contained in:
toasted-nutbread 2019-09-10 21:32:07 -04:00
parent 34ddbf25fe
commit 8b7e293eae

View File

@ -173,7 +173,11 @@ async function onProfileAdd() {
await apiOptionsSave();
}
async function onProfileRemove() {
async function onProfileRemove(e) {
if (e.shiftKey) {
return await onProfileRemoveConfirm();
}
const optionsFull = await apiOptionsGetFull();
if (optionsFull.profiles.length <= 1) {
return;