pygui: fixed edit node mac setting to auto to properly clear out current mac setting
This commit is contained in:
parent
a23ef7d603
commit
6793382f44
1 changed files with 3 additions and 1 deletions
|
@ -342,7 +342,9 @@ class NodeConfigDialog(Dialog):
|
|||
|
||||
mac = data.mac.get()
|
||||
auto_mac = data.is_auto.get()
|
||||
if not auto_mac and not netaddr.valid_mac(mac):
|
||||
if auto_mac:
|
||||
iface.mac = None
|
||||
elif not auto_mac and not netaddr.valid_mac(mac):
|
||||
title = f"MAC Error for {iface.name}"
|
||||
messagebox.showerror(title, "Invalid MAC Address")
|
||||
error = True
|
||||
|
|
Loading…
Reference in a new issue