File indexing completed on 2024-11-10 04:55:54
0001 effects.windowAdded.connect(function (window) { 0002 window.animation = animate({ 0003 window: window, 0004 curve: QEasingCurve.Linear, 0005 duration: animationTime(1000), 0006 type: Effect.Opacity, 0007 from: 0.0, 0008 to: 1.0 0009 }) 0010 0011 window.minimizedChanged.connect(() => { 0012 if (!window.minimized) { 0013 return; 0014 } 0015 if (redirect(window.animation, Effect.Backward, Effect.DontTerminate)) { 0016 sendTestResponse('ok'); 0017 } else { 0018 sendTestResponse('fail'); 0019 } 0020 }); 0021 });