Enyium

Results 99 comments of Enyium

Here are two videos: https://github.com/user-attachments/assets/a10ea260-40fb-49d1-8722-f751c65cd6fb https://github.com/user-attachments/assets/7faedb65-a1f8-41ea-b63e-49fc2db0c2a9

> Why would one want to run slint code when the window is destroyed that cannot be run from the Rust side? I have currently no deeper insights into my...

No, @sandy081, "Sort By > Updated Date" is far from doing the same! There are a lot of extensions in my list above (also below) my recently installed ones when...

BTW, if setting `interval` to a value that only differs by a millisecond restarts the timer, it should also be restarted, if it's set to the same value. If that's...

[This SlintPad demo](https://slintpad.com/?snippet=import+%7B+Button%2C+VerticalBox+%7D+from+%22std-widgets.slint%22%3B%0A%0Acomponent+ExtendedTimer+%7B%0A++++in+property+%3Cbool%3E+oneshot%3A+false%3B%0A++++in+property+%3Cduration%3E+interval%3A+1s%3B%0A++++in-out+property+%3Cbool%3E+running%3A+true%3B%0A%0A++++callback+triggered%3B%0A%0A++++%2F*init+%3D%3E+%7B%0A++++++++%2F%2F+Initially+use+this+component%27s+property%2C+but+not+reactively+as+when+it+would+be+bound+below.%0A++++++++timer.interval+%3D+self.interval%3B%0A++++%7D*%2F%0A%0A++++changed+interval+%3D%3E+%7B%0A++++++++self.apply-interval%28%29%3B%0A++++%7D%0A%0A++++public+function+restart%28%29+%7B%0A++++++++self.apply-interval%28%29%3B%0A++++++++self.running+%3D+true%3B%0A++++%7D%0A%0A++++public+function+prepone%28%29+%7B%0A++++++++if+self.running+%7B%0A++++++++++++timer.triggered%28%29%3B%0A%0A++++++++++++if+%21root.oneshot+%7B%0A++++++++++++++++self.restart%28%29%3B%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A%0A++++public+function+stop%28%29+%7B%0A++++++++self.running+%3D+false%3B%0A++++%7D%0A%0A++++function+apply-interval%28%29+%7B%0A++++++++timer.interval+%3D+%28%0A++++++++++++self.interval+%2B%0A++++++++++++%28self.interval+%3D%3D+timer.interval+%3F+1ms+%3A+0%29%0A++++++++%29%3B%0A++++%7D%0A%0A++++timer+%3A%3D+Timer+%7B%0A++++++++interval%3A+root.interval%3B+%2F%2F+Because+of+bug+%3Chttps%3A%2F%2Fgithub.com%2Fslint-ui%2Fslint%2Fissues%2F6376%3E.%0A++++++++%2F%2F+interval%3A+9223372036854775807ms%3B+%2F%2F+%60i64%3A%3AMAX%60+ms.%0A++++++++running+%3C%3D%3E+root.running%3B%0A%0A++++++++triggered+%3D%3E+%7B%0A++++++++++++root.triggered%28%29%3B%0A%0A++++++++++++if+root.oneshot+%7B%0A++++++++++++++++root.stop%28%29%3B%0A++++++++++++%7D%0A++++++++%7D%0A++++%7D%0A%7D%0A%0Aexport+component+Demo+%7B%0A++++timer+%3A%3D+ExtendedTimer+%7B%0A++++++++interval%3A+1s%3B%0A%0A++++++++triggered+%3D%3E+%7B%0A++++++++++++t.text+%3D+t.text.to-float%28%29+%2B+1%3B%0A++++++++%7D%0A++++%7D%0A%0A++++VerticalBox+%7B%0A++++++++alignment%3A+start%3B%0A%0A++++++++t+%3A%3D+Text+%7B%0A++++++++++++text%3A+%220%22%3B%0A++++++++%7D%0A%0A++++++++Button+%7B%0A++++++++++++text%3A+%22Restart%22%3B%0A++++++++++++clicked+%3D%3E+%7B+timer.restart%28%29%3B+%7D%0A++++++++%7D%0A++++++++Button+%7B%0A++++++++++++text%3A+%22Prepone%22%3B%0A++++++++++++clicked+%3D%3E+%7B+timer.prepone%28%29%3B+%7D%0A++++++++%7D%0A++++++++Button+%7B%0A++++++++++++text%3A+%22Stop%22%3B%0A++++++++++++clicked+%3D%3E+%7B+timer.stop%28%29%3B+%7D%0A++++++++%7D%0A++++%7D%0A%7D&style=native) shows details of what I mean using an implementation of an `ExtendedTimer`.

> Which version are you using here? VS Code extension and `slint` crate in Rust project are both on v1.8.0. But with the nightly extension (and unchanged Rust crate version),...

With a `TextInput` inside a `TouchArea`: ```slint TouchArea { TextInput { text: "https://www.example.com/lorem+ipsum+dolor+sit+amet"; } } ``` ...the situation described in #6444 becomes worse: Now, clicking with *any* mouse button switches...

This problem sometimes makes me work with the clipboard through cut and paste to be able to directly compare a difference. It would be nice if these cases became less...

> > How should we report the errors in the preview? > > Currently I don't have a better idea so I think for now a simple overlay would be...