Disable port selection when connected

This commit is contained in:
GHOSCHT 2022-04-04 19:32:14 +02:00
parent 19d4d2c426
commit 77de12fb39
No known key found for this signature in database
GPG key ID: A35BD466B8871994

View file

@ -89,6 +89,7 @@ const Settings: React.FC<Proptypes> = () => {
onMenuOpen={() => { fetchPorts(); }}
onChange={(_, option) => { handlePortChange(option); }}
selectedKey={selector.serialConnection.port}
disabled={selector.serialConnection.status.connected}
/>
<DialogFooter>