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 - lo
- wifi0 - wifi0
- docker0 - docker0
dists:
- Debian x32
- Armbian
- Manjaro
- Android
- bob

View File

@ -113,11 +113,10 @@ func makeBurnSDcardPage() *ui.Box {
vbox := addGroupBox(hbox, "Select Distribution") vbox := addGroupBox(hbox, "Select Distribution")
cbox := ui.NewCombobox() cbox := ui.NewCombobox()
cbox.Append("Armbian") for _, addr := range config.Strings("dists") {
cbox.Append("Debian") log.Println("addr =", addr)
cbox.Append("Manjaro") cbox.Append(addr)
cbox.Append("q4os") }
cbox.Append("android")
cbox.OnSelected(selectDrive) cbox.OnSelected(selectDrive)
vbox.Append(cbox, false) vbox.Append(cbox, false)