File tree Expand file tree Collapse file tree 1 file changed +19
-14
lines changed Expand file tree Collapse file tree 1 file changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -392,20 +392,25 @@ export const Preview = GObject.registerClass({
392
392
}
393
393
394
394
if ( this . switcher . _iconScaleUpDown ) {
395
- this . switcher . _manager . platform . tween ( this . _icon , {
396
- transition : 'easeInOutQuint' ,
397
- scale_x : 0 ,
398
- scale_y : 0 ,
399
- time : animation_time ,
400
- onComplete : ( ) => {
401
- if ( this . _icon !== null ) {
402
- this . _icon . destroy ( )
403
- this . _icon = null ;
404
- this . _application_icon_box . destroy ( ) ;
405
- this . _application_icon_box = null ;
406
- }
407
- } ,
408
- } ) ;
395
+ if ( this . _icon !== null ) {
396
+ let t = this . _icon . get_transition ( 'scale-x' ) ;
397
+ if ( ! t || t . get_interval ( ) . peek_final_value ( ) !== 0 ) {
398
+ this . switcher . _manager . platform . tween ( this . _icon , {
399
+ transition : 'easeInOutQuint' ,
400
+ scale_x : 0 ,
401
+ scale_y : 0 ,
402
+ time : animation_time ,
403
+ onComplete : ( ) => {
404
+ if ( this . _icon !== null ) {
405
+ this . _icon . destroy ( )
406
+ this . _icon = null ;
407
+ this . _application_icon_box . destroy ( ) ;
408
+ this . _application_icon_box = null ;
409
+ }
410
+ } ,
411
+ } ) ;
412
+ }
413
+ }
409
414
}
410
415
}
411
416
}
You can’t perform that action at this time.
0 commit comments