syncbox

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenThen

func OpenThen(ctx context.Context, acc *auth.Account, f func())

OpenThen is similar to Open, except the function does not block, but instead will call f in the main event loop once it's done.

Types

type Popup struct {
	// contains filtered or unexported fields
}

func Open

func Open(ctx context.Context, acc *auth.Account) *Popup

Open shows a popup while opening the client in the background. Once the client has successfully synchronized, the popup will close automatically. Note that Open will block until the synchronization is done, so it should only be called in a goroutine.

func Show

func Show(ctx context.Context, account *auth.Account) *Popup

Show shows a popup.

func (*Popup) QueueSetLabel

func (p *Popup) QueueSetLabel(text string)

QueueSetLabel queues the label setting to be on the main thread.

func (*Popup) SetLabel

func (p *Popup) SetLabel(text string)

SetLabel sets the popup's label.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL