Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding selection option to Label #5536

Open
wants to merge 21 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions test/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type app struct {
propertyLock sync.RWMutex
storage fyne.Storage
lifecycle intapp.Lifecycle
clip fyne.Clipboard
cloud fyne.CloudProvider

// user action variables
Expand Down Expand Up @@ -64,7 +65,7 @@ func (a *app) Quit() {
}

func (a *app) Clipboard() fyne.Clipboard {
return NewClipboard()
return a.clip
}

func (a *app) UniqueID() string {
Expand Down Expand Up @@ -166,7 +167,7 @@ func NewApp() fyne.App {
settings := &testSettings{scale: 1.0, theme: Theme()}
prefs := internal.NewInMemoryPreferences()
store := &testStorage{}
test := &app{settings: settings, prefs: prefs, storage: store, driver: NewDriver().(*driver)}
test := &app{settings: settings, prefs: prefs, storage: store, driver: NewDriver().(*driver), clip: NewClipboard()}
settings.app = test
root, _ := store.docRootURI()
store.Docs = &internal.Docs{RootDocURI: root}
Expand Down
Loading
Loading