move to storing this info in a config file
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
fe92700a1d
commit
832d50207f
|
@ -12,3 +12,10 @@ arr1:
|
|||
- lo
|
||||
- wifi0
|
||||
- docker0
|
||||
|
||||
dists:
|
||||
- Debian x32
|
||||
- Armbian
|
||||
- Manjaro
|
||||
- Android
|
||||
- bob
|
||||
|
|
|
@ -113,11 +113,10 @@ func makeBurnSDcardPage() *ui.Box {
|
|||
vbox := addGroupBox(hbox, "Select Distribution")
|
||||
|
||||
cbox := ui.NewCombobox()
|
||||
cbox.Append("Armbian")
|
||||
cbox.Append("Debian")
|
||||
cbox.Append("Manjaro")
|
||||
cbox.Append("q4os")
|
||||
cbox.Append("android")
|
||||
for _, addr := range config.Strings("dists") {
|
||||
log.Println("addr =", addr)
|
||||
cbox.Append(addr)
|
||||
}
|
||||
cbox.OnSelected(selectDrive)
|
||||
vbox.Append(cbox, false)
|
||||
|
||||
|
|
Loading…
Reference in New Issue