-
Notifications
You must be signed in to change notification settings - Fork 14
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
Added has started, which adds way to check, whether CSSFX has been st… #46
base: master
Are you sure you want to change the base?
Conversation
…arted. Useful to check whether it's active in a production environment, without relying on JVM-Arguments.
private static boolean isGlobalCssFXStarted = false; | ||
|
||
private static boolean isAnyCssFXStarted = false; | ||
|
||
|
||
private static BooleanProperty cssFXStarted = new SimpleBooleanProperty(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the purpose of keeping several states? isn't only one enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isGlobalCssFXStarted prevents starting CSSFX.start()
twice - which would end in twice as many listeners.
isAnyCssFXStarted just tells us, whether CSSFX was started in any way.
It's worth noting, that It's not really possible to start CSSFX.
cssFXStarted.set(true); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we lack a cleanup of this state change during stop action
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The stop mechanism doesn't really work.
The listener still stays active.
And it's not really used in any application I know of.
So I would rather suggest removing the stop method.
@McFoggy |
@FlorianKirmaier I have simplified your work in #47 please have a look. |
…arted. Useful to check whether it's active in a production environment, without relying on JVM-Arguments.