Added confirm button

This commit is contained in:
2026-04-04 01:00:45 +01:00
parent 8716cdd6bd
commit 7b989fb2b2

View File

@@ -23,6 +23,10 @@ func main () {
deviceSelectorWindow.SetContent(container.NewVBox(
widget.NewLabel("Please Select Serial Port"),
portSelector,
widget.NewButton("Confirm Select Device", func(){
// Will be a package UI function to confirm device is ok
fmt.Println("Device Confirmed")
}),
))
deviceSelectorWindow.ShowAndRun()
}