Remove profile without popup when shift key is pressed
Also removes duplicate click listener.
This commit is contained in:
parent
34ddbf25fe
commit
8b7e293eae
@ -173,7 +173,11 @@ async function onProfileAdd() {
|
|||||||
await apiOptionsSave();
|
await apiOptionsSave();
|
||||||
}
|
}
|
||||||
|
|
||||||
async function onProfileRemove() {
|
async function onProfileRemove(e) {
|
||||||
|
if (e.shiftKey) {
|
||||||
|
return await onProfileRemoveConfirm();
|
||||||
|
}
|
||||||
|
|
||||||
const optionsFull = await apiOptionsGetFull();
|
const optionsFull = await apiOptionsGetFull();
|
||||||
if (optionsFull.profiles.length <= 1) {
|
if (optionsFull.profiles.length <= 1) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user