mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-27 19:56:07 -05:00
Restore original color after PulseWidget() completes
This commit is contained in:
@@ -900,6 +900,10 @@ QMetaObject::Connection PulseWidget(QWidget *widget, QColor startColor,
|
||||
paAnimation->start();
|
||||
});
|
||||
});
|
||||
} else {
|
||||
con = QWidget::connect(
|
||||
paAnimation, &QPropertyAnimation::finished,
|
||||
[widget]() { widget->setGraphicsEffect(nullptr); });
|
||||
}
|
||||
|
||||
paAnimation->start();
|
||||
|
||||
Reference in New Issue
Block a user