diff options
| author | Jeff Carr <[email protected]> | 2019-05-29 21:07:19 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-29 21:07:19 -0700 |
| commit | 1e1614d2afb6453e9761ace614cebd327400d6ea (patch) | |
| tree | bcabc011f656effb14496f34d1ba618a24d91435 /mainCloudBox.go | |
| parent | 3303ac756173a4fffe9229df108bd7129a13ff43 (diff) | |
more code cleanup
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'mainCloudBox.go')
| -rw-r--r-- | mainCloudBox.go | 32 |
1 files changed, 11 insertions, 21 deletions
diff --git a/mainCloudBox.go b/mainCloudBox.go index 02b4b6e..503fe1a 100644 --- a/mainCloudBox.go +++ b/mainCloudBox.go @@ -217,20 +217,7 @@ func GoMainWindow() { } */ -func ShowWindow() { - // Data.Window1 = new(WindowMap) - for i, aWM := range(Data.Windows) { - log.Println(aWM) - if (aWM.W == nil) { - log.Println("ShowWindow() THIS WINDOW IS NOT YET SHOWN") - // Data.NewWindow = &aWM - Data.NewWindow = i - ui.Main(InitWindow) - } - } -} - -func InitNewWindow(c *pb.Config, action string) *WindowMap { +func StartNewWindow(c *pb.Config, action string) { log.Println("InitNewWindow() Create a new window") var newWindowMap WindowMap newWindowMap.C = c @@ -250,13 +237,16 @@ func InitNewWindow(c *pb.Config, action string) *WindowMap { return true }) - return &newWindowMap - - // NEED TO INIT THIS HERE -// ui.OnShouldQuit(func() bool { -// mouseClick(&newBM) -// return true -// }) + for i, aWM := range(Data.Windows) { + log.Println(aWM) + if (aWM.W == nil) { + log.Println("ShowWindow() THIS WINDOW IS NOT YET SHOWN") + // Data.NewWindow = &aWM + Data.NewWindow = i + ui.Main(InitWindow) + return + } + } } func getSplashText() *ui.AttributedString { |
