diff options
| author | Jeff Carr <[email protected]> | 2024-01-18 21:00:37 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-18 21:00:37 -0600 |
| commit | 0adbbecdac066607842686da1c0db1530e7b1728 (patch) | |
| tree | b6f92f74b6d1605d073125211ff27e44429c60a8 /main.go | |
| parent | 0fd60847fcb637643748a141dcb15768361578ca (diff) | |
better function names
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -18,6 +18,8 @@ var uiMain sync.Once var muAction sync.Mutex func queueMain(currentA widget.Action) { + /* + // this never happends defer func() { if r := recover(); r != nil { log.Warn("YAHOOOO Recovered in queueMain() application:", r) @@ -27,8 +29,15 @@ func queueMain(currentA widget.Action) { me.myTree.DoToolkitPanic() } }() + */ + // andlabs puts this inside the gofunction over there + // probably this should be changed around here + // and only andlabs stuff should be sent there? + // it's easier to code it this way however + // also, if it dies here, it get's caught + // usually, this is where it dies ui.QueueMain(func() { - rawAction(¤tA) + processAction(¤tA) }) } @@ -43,7 +52,10 @@ func guiMain() { } }() ui.Main(func() { - demoUI() + // this is a bad hack for now. + // a better way would be to spawn ui.Main on the first actual window + // that is supposed to be displayed + placeholderUI() }) } |
