try to delete and replace the ui.Tab(0)
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
f98164e2fc
commit
32990af0fd
10
README.md
10
README.md
|
@ -8,6 +8,16 @@ Obviously I'm developing this app on Linux so if things are
|
||||||
broken in the MacOS or Windows, check the Linux version if
|
broken in the MacOS or Windows, check the Linux version if
|
||||||
possible to see if it is also broken there.
|
possible to see if it is also broken there.
|
||||||
|
|
||||||
|
# IMPORTANT NOTES
|
||||||
|
|
||||||
|
To use the cross platform UI, all GUI interactions must be
|
||||||
|
done from within the same goroutine for it to work properly
|
||||||
|
on Windows. This is an annoying limitation of how Windows works
|
||||||
|
(or so it appears. maybe someone will figure out how to fix that)
|
||||||
|
|
||||||
|
This means the Windows version of this GUI will probably always
|
||||||
|
be sub-par verses the Linux and Macintosh versions
|
||||||
|
|
||||||
# build
|
# build
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,2 +1,6 @@
|
||||||
|
build:
|
||||||
|
go build
|
||||||
|
./example-systray
|
||||||
|
|
||||||
run:
|
run:
|
||||||
go run *.go
|
go run *.go
|
||||||
|
|
|
@ -40,8 +40,13 @@ func main() {
|
||||||
|
|
||||||
func buttonClick(i int, s string) {
|
func buttonClick(i int, s string) {
|
||||||
log.Println("test2 buttonClick() i, s =", i, s)
|
log.Println("test2 buttonClick() i, s =", i, s)
|
||||||
|
cloudTab.Delete(0)
|
||||||
|
|
||||||
|
log.Println("Sleep(2000)")
|
||||||
|
time.Sleep(2000 * time.Millisecond)
|
||||||
|
|
||||||
smallBox = account1.AddAccountBox(nil, splashClose)
|
smallBox = account1.AddAccountBox(nil, splashClose)
|
||||||
cloudTab.InsertAt("Intro", 1, smallBox)
|
cloudTab.InsertAt("Intro", 0, smallBox)
|
||||||
cloudTab.SetMargined(0, true)
|
cloudTab.SetMargined(0, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue