9e10394db1
This makes the api of EffectWindow more similar to the api of Window. It also makes more sense to keep such signals in EffectWindow. In the future, the effect window can be dropped in favor of the window.
19 lines
470 B
JavaScript
19 lines
470 B
JavaScript
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
|
|
});
|
|
|
|
window.windowMinimized.connect(() => {
|
|
if (complete(window.animation)) {
|
|
sendTestResponse('ok');
|
|
} else {
|
|
sendTestResponse('fail');
|
|
}
|
|
});
|
|
});
|