diff --git a/src/timeline/widgets/ImageItem.cc b/src/timeline/widgets/ImageItem.cc index d28a4017..fc1e46f5 100644 --- a/src/timeline/widgets/ImageItem.cc +++ b/src/timeline/widgets/ImageItem.cc @@ -233,7 +233,7 @@ ImageItem::saveAs() connect(proxy, &DownloadMediaProxy::fileDownloaded, this, - [proxy, this, filename](const QByteArray &data) { + [proxy, filename](const QByteArray &data) { proxy->deleteLater(); try { diff --git a/src/ui/SnackBar.cc b/src/ui/SnackBar.cc index 123d83e8..d548a128 100644 --- a/src/ui/SnackBar.cc +++ b/src/ui/SnackBar.cc @@ -29,10 +29,10 @@ SnackBar::SnackBar(QWidget *parent) hideTimer_ = QSharedPointer(new QTimer); hideTimer_->setSingleShot(true); - auto offset_anim = tweeny::from(1.0f).to(0.0f).during(4000).via(tweeny::easing::elasticOut); + auto offset_anim = tweeny::from(1.0f).to(0.0f).during(100).via(tweeny::easing::cubicOut); connect(showTimer_.data(), &QTimer::timeout, this, [this, offset_anim]() mutable { if (offset_anim.progress() < 1.0f) { - offset_ = offset_anim.step(0.02f); + offset_ = offset_anim.step(0.07f); update(); } else { showTimer_->stop();