fix: network dialog closes immediately on Connect (don't await)
This commit is contained in:
@@ -494,10 +494,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="input-row" style="justify-content:flex-end">
|
<div class="input-row" style="justify-content:flex-end">
|
||||||
<button onclick={() => { showNetworkDialog = null; }}>Cancel</button>
|
<button onclick={() => { showNetworkDialog = null; }}>Cancel</button>
|
||||||
<button onclick={async () => {
|
<button onclick={() => {
|
||||||
const mod = showNetworkDialog!.type === 'tunnel-sink' ? 'module-tunnel-sink' : 'module-tunnel-source';
|
const mod = showNetworkDialog!.type === 'tunnel-sink' ? 'module-tunnel-sink' : 'module-tunnel-source';
|
||||||
await loadModule(mod, 'server=tcp:' + netHost + ':' + netPort);
|
|
||||||
showNetworkDialog = null;
|
showNetworkDialog = null;
|
||||||
|
loadModule(mod, 'server=tcp:' + netHost + ':' + netPort);
|
||||||
}}>Connect</button>
|
}}>Connect</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user