feel like I'm doing shit here, but I reckon it will work
This commit is contained in:
@@ -219,7 +219,7 @@ func layoutToolTreeViewOnChange(bus *events.Bus, doc *dom.DOM) func(node *tview.
|
||||
})
|
||||
|
||||
pages := doc.GetElemByID(LayoutToolActionPagesID)
|
||||
AddAndShowPage(bus, doc, pages.(*tview.Pages), nodeWinRef.Form, false)
|
||||
AddAndShowPage(pages.(*tview.Pages), nodeWinRef.Form, false)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -144,8 +144,7 @@ func createNewWindowForm(bus *events.Bus, doc *dom.DOM) {
|
||||
}
|
||||
}
|
||||
|
||||
AddAndShowPage(bus, doc, doc.GetElemByID(LayoutToolActionPagesID).(*tview.Pages),
|
||||
formNode, true)
|
||||
AddAndShowPage(doc.GetElemByID(LayoutToolActionPagesID).(*tview.Pages), formNode, true)
|
||||
}
|
||||
|
||||
func windowInfoPageID(idx int16) string {
|
||||
|
||||
@@ -168,5 +168,5 @@ func windowManipulationTool(bus *events.Bus, doc *dom.DOM, idx int16) {
|
||||
}
|
||||
|
||||
box.SetInputCapture(windowManipulationEvCapture(bus, doc, idx, &state))
|
||||
AddAndShowPage(bus, doc, actionPages, boxNode, true)
|
||||
AddAndShowPage(actionPages, boxNode, true)
|
||||
}
|
||||
|
||||
@@ -52,10 +52,10 @@ type DeviceAPIListView struct {
|
||||
}
|
||||
|
||||
func NewDeviceAPIListView() *DeviceAPIListView {
|
||||
deviceAPIList := tview.NewList().
|
||||
AddItem("layout", "build a layout for CDashDisplay", 0, func() {
|
||||
// layoutToolUIOnSelect(bus, doc)
|
||||
})
|
||||
deviceAPIList := tview.NewList()
|
||||
// AddItem("layout", "build a layout for CDashDisplay", 0, func() {
|
||||
// layoutToolUIOnSelect(bus, doc)
|
||||
// })
|
||||
deviceAPIList.SetBorder(true).SetTitle("list")
|
||||
|
||||
return &DeviceAPIListView{
|
||||
|
||||
@@ -62,7 +62,7 @@ func streamingWindow(bus *events.Bus, doc *dom.DOM) {
|
||||
}
|
||||
|
||||
// Add it to the action pages and view it
|
||||
AddAndShowPage(bus, doc, actionPages, boxNode, true)
|
||||
AddAndShowPage(actionPages, boxNode, true)
|
||||
|
||||
bus.Emit(ui.StartStreamingReqEv{})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user