Code Monkey home page Code Monkey logo

Comments (5)

andydotxyz avatar andydotxyz commented on June 20, 2024 1

Updated title to be freeze not crash as they are quite different

from fyne.

codesoap avatar codesoap commented on June 20, 2024 1

Awesome, thanks for the lightning fast fix, @andydotxyz ! I'll try to test it with the development branch, when I find some time.

from fyne.

codesoap avatar codesoap commented on June 20, 2024 1

I've now tested on the develop branch and don't see the problem anymore. Thanks again!

from fyne.

codesoap avatar codesoap commented on June 20, 2024

While searching for existing code that uses SetOnDropped, I found this: https://github.com/metal3d/fyne-streamer/blob/8800be35603ad89a6599e6a09152a988655e828a/examples/blender-peertube/main.go#L111

It looks like someone else already found the bug and also found a workaround. This works:

package main

import "fyne.io/fyne/v2"
import "fyne.io/fyne/v2/app"
import "fyne.io/fyne/v2/widget"

func main() {
	a := app.New()
	w := a.NewWindow("test")
	w.SetOnDropped(func(pos fyne.Position, uris []fyne.URI) {
		go func() { w.SetContent(widget.NewLabel("File dropped")) }()
	})
	w.ShowAndRun()
}

from fyne.

andydotxyz avatar andydotxyz commented on June 20, 2024

Fixed on Develop branch, but it probably missed v2.4.4 - if we do 2.4.5 before 2.5.0 then this should be in it

from fyne.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.