Fix never released activating_source
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
24342f5062
commit
0fd9baaf71
@ -4,6 +4,7 @@
|
|||||||
let activating_source = null;
|
let activating_source = null;
|
||||||
async function clickSource(src) {
|
async function clickSource(src) {
|
||||||
activating_source = src.id;
|
activating_source = src.id;
|
||||||
|
try {
|
||||||
if (src.enabled) {
|
if (src.enabled) {
|
||||||
await src.deactivate();
|
await src.deactivate();
|
||||||
await sources.refresh();
|
await sources.refresh();
|
||||||
@ -11,6 +12,8 @@
|
|||||||
await src.activate();
|
await src.activate();
|
||||||
await sources.refresh();
|
await sources.refresh();
|
||||||
}
|
}
|
||||||
|
} catch {
|
||||||
|
}
|
||||||
activating_source = null;
|
activating_source = null;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user