We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e365fd commit 6f0609fCopy full SHA for 6f0609f
1 file changed
HMCL/src/main/java/org/jackhuang/hmcl/ui/construct/SpinnerPane.java
@@ -169,13 +169,13 @@ private static final class Skin extends SkinBase<SpinnerPane> {
169
}
170
171
private void animateContentOpacity(double targetOpacity) {
172
- if (Math.abs(contentPane.getOpacity() - targetOpacity) < 0.01) {
173
- return;
174
- }
175
-
176
if (contentFadeTransition != null) {
177
contentFadeTransition.stop();
+ }
+
+ if (Math.abs(contentPane.getOpacity() - targetOpacity) < 0.01) {
178
contentPane.setOpacity(targetOpacity);
+ return;
179
180
181
contentFadeTransition = new FadeTransition(Motion.SHORT4, contentPane);
0 commit comments