move to storing this info in a config file

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-04-25 07:38:33 -07:00
parent fe92700a1d
commit 832d50207f
2 changed files with 11 additions and 5 deletions

View File

@ -12,3 +12,10 @@ arr1:
- lo
- wifi0
- docker0
dists:
- Debian x32
- Armbian
- Manjaro
- Android
- bob

View File

@ -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)