mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
init column config menu
This commit is contained in:
@@ -42,6 +42,12 @@ func New(id string, collector collector.Collector, manager manager.Manager) *Con
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Container) RecreateWidgets() {
|
||||
c.SetUpdater(cwidgets.NullWidgetUpdater{})
|
||||
c.Widgets = compact.NewCompactRow()
|
||||
c.SetUpdater(c.Widgets)
|
||||
}
|
||||
|
||||
func (c *Container) SetUpdater(u cwidgets.WidgetUpdater) {
|
||||
c.updater = u
|
||||
c.updater.SetMeta(c.Meta)
|
||||
|
||||
Reference in New Issue
Block a user