Skip to content

Commit

Permalink
Revert "fix Glaxnimate not showing preview when launched"
Browse files Browse the repository at this point in the history
This reverts commit b1a4d57.
  • Loading branch information
ddennedy committed May 3, 2023
1 parent fb62ffd commit d0e5860
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/widgets/glaxnimateproducerwidget.cpp
Expand Up @@ -332,7 +332,7 @@ void GlaxnimateProducerWidget::onFileChanged(const QString &path)
m_title = caption;
m_producer->set("refresh", 1);
MLT.refreshConsumer();
QTimer::singleShot(1000, this, [ = ]() {
QTimer::singleShot(1000, [this]() {
if (ui->durationSpinBox->value() != m_producer->get_length()) {
ui->durationSpinBox->setValue(m_producer->get_length());
on_durationSpinBox_editingFinished();
Expand Down Expand Up @@ -440,11 +440,6 @@ void GlaxnimateIpcServer::onConnect()
m_socket->flush();
m_server->close();
m_isProtocolValid = false;
// Sometimes Glaxnimate needs another greeting
QTimer::singleShot(100, this, [ = ] () {
*m_stream << QString("hello");
m_socket->flush();
});
}

int GlaxnimateIpcServer::toMltFps(float frame) const
Expand Down

0 comments on commit d0e5860

Please sign in to comment.