diff options
author | JeffB42 <10328858+JeffB42@users.noreply.github.com> | 2021-04-17 20:26:52 +0300 |
---|---|---|
committer | JeffB42 <10328858+JeffB42@users.noreply.github.com> | 2021-04-17 20:26:52 +0300 |
commit | 18730d7b2923ab13f7a31ad910fb3a55691a872a (patch) | |
tree | befb3208cae90233f4cd4930164d0284d88507e5 | |
parent | 6cee031361b7640887564ad7ddac4eb7de89d74f (diff) |
added name parameter and removed parentPanel parameter
-rwxr-xr-x | ui/ControlPanel.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/ControlPanel.go b/ui/ControlPanel.go index 71fc839..b53e0f6 100755 --- a/ui/ControlPanel.go +++ b/ui/ControlPanel.go @@ -4,7 +4,8 @@ import ( "strings" // "github.com/gotk3/gotk3/gtk" - "github.com/Z-Bolt/OctoScreen/interfaces" + + // "github.com/Z-Bolt/OctoScreen/interfaces" "github.com/Z-Bolt/OctoScreen/logger" "github.com/Z-Bolt/OctoScreen/uiWidgets" "github.com/Z-Bolt/OctoScreen/octoprintApis" @@ -12,6 +13,7 @@ import ( // "github.com/Z-Bolt/OctoScreen/utils" ) + var controlPanelInstance *controlPanel type controlPanel struct { @@ -20,11 +22,10 @@ type controlPanel struct { func ControlPanel( ui *UI, - parentPanel interfaces.IPanel, ) *controlPanel { if controlPanelInstance == nil { instance := &controlPanel { - CommonPanel: NewCommonPanel(ui, parentPanel), + CommonPanel: NewCommonPanel("ControlPanel", ui), } instance.initialize() controlPanelInstance = instance |