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

Timer could have start(), stop() and restart() functions #7476

Open
hunger opened this issue Jan 27, 2025 · 1 comment
Open

Timer could have start(), stop() and restart() functions #7476

hunger opened this issue Jan 27, 2025 · 1 comment
Labels
a:language-slint Compiler for the .slint language (mO,bF) enhancement New feature or request

Comments

@hunger
Copy link
Member

hunger commented Jan 27, 2025

Feature Description

As seen in Discussion #7435, the Timer object might benefit from some start(), stop() and restart() functions.

I think we can approximate them with setting the running property, but that might just pause the timer execution or do something different:-)

Product Impact

No response

@hunger hunger added enhancement New feature or request need triaging Issue that the owner of the area still need to triage labels Jan 27, 2025
@ogoffart
Copy link
Member

Makes sense. start() and stop() would be easy to implement by lowering to running = true/false
But restart would be harder because that's, i think, not possible right now and would need some extra generated code to do.

@ogoffart ogoffart added a:language-slint Compiler for the .slint language (mO,bF) and removed need triaging Issue that the owner of the area still need to triage labels Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:language-slint Compiler for the .slint language (mO,bF) enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants