2018-10-25 18:02:36 +00:00
|
|
|
effects.windowAdded.connect(function (window) {
|
|
|
|
window.animation = set({
|
|
|
|
window: window,
|
|
|
|
curve: QEasingCurve.Linear,
|
|
|
|
duration: animationTime(1000),
|
|
|
|
type: Effect.Opacity,
|
|
|
|
from: 0,
|
|
|
|
to: 1,
|
|
|
|
keepAlive: false
|
|
|
|
});
|
|
|
|
|
2023-11-21 11:39:23 +00:00
|
|
|
window.minimizedChanged.connect(() => {
|
|
|
|
if (!window.minimized) {
|
|
|
|
return;
|
|
|
|
}
|
2023-09-23 08:13:23 +00:00
|
|
|
if (complete(window.animation)) {
|
|
|
|
sendTestResponse('ok');
|
|
|
|
} else {
|
|
|
|
sendTestResponse('fail');
|
|
|
|
}
|
|
|
|
});
|
2018-10-25 18:02:36 +00:00
|
|
|
});
|