diff options
| author | Jeff Carr <[email protected]> | 2023-12-14 10:36:56 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-12-14 10:36:56 -0600 |
| commit | 282119d970faed3f8a60d5105a2f26ee14681ff4 (patch) | |
| tree | 1680731c899f0e147487b9ba4d50ace2f3e96eb1 /plugin.go | |
| parent | 9d075afb1df62276dea06be4a188eaee8fc69420 (diff) | |
tabs, windows + gocui dropdown menu (almost)
dropdown menu figures out what text was clicked
dropdown menu movement changes line colors
dropdown menus force user to select a response
accidentally committed a binary
tab selection works
tab and window views almost working
tabs and windows almost working
window widgets selection works
better color handling
using gocui view.Visable flag
removal of old color setting code
still need an artificial delay for andlabs SetText()
catching more 'nil' errors
fixed the stupid duplicate tab problem in andlabs
figured out how andlabs had a tab/box mess
works on more than one domain
builds and runs again
debugging double tabs in andlabs gui
GO111MODULE compile notes
code reorg
further improvements
example cloudflare app does first successful dns update
add NewEntryLine() for single line entry boxes
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'plugin.go')
| -rw-r--r-- | plugin.go | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -132,7 +132,6 @@ func searchPaths(name string) *aplug { log(logError, filename, "was not embedded in the binary. Error:", err) } - log(logError, "fuck off") // attempt to write out the file from the internal resource filename = "toolkit/" + name + ".so" p := initToolkit(name, filename) @@ -254,7 +253,7 @@ func sendAction(a *toolkit.Action) { log(logInfo, "Action() SEND to pluginChan", aplug.name) aplug.pluginChan <- *a // added during debugging. might be a good idea in general for a tactile experience - sleep(.02) + sleep(.02) // this delay makes it so SetText() works on initial widget creation } } @@ -303,7 +302,7 @@ func (n *Node) LoadToolkit(name string) *Node { var a toolkit.Action a.ActionType = toolkit.InitToolkit plug.pluginChan <- a - sleep(.5) // temp hack until chan communication is setup + // sleep(.5) // temp hack until chan communication is setup // TODO: find a new way to do this that is locking, safe and accurate me.rootNode.redraw(plug) @@ -320,7 +319,7 @@ func (n *Node) CloseToolkit(name string) bool { var a toolkit.Action a.ActionType = toolkit.CloseToolkit plug.pluginChan <- a - sleep(.5) + // sleep(.5) // is this needed? TODO: properly close channel return true } } |
