Hide export window before save

Thanks Memo Mind for the suggestion.
master
Jeremy Hu 2020-02-27 22:40:07 +09:30
parent a0f15780b5
commit 178e2296ea
1 changed files with 2 additions and 0 deletions

View File

@ -49,8 +49,10 @@ ExportPreviewWidget::ExportPreviewWidget(Document *document, QWidget *parent) :
connect(m_saveButton, &QPushButton::clicked, this, [=]() { connect(m_saveButton, &QPushButton::clicked, this, [=]() {
auto currentIndex = exportFormatSelectBox->currentIndex(); auto currentIndex = exportFormatSelectBox->currentIndex();
if (0 == currentIndex) { if (0 == currentIndex) {
this->hide();
emit saveAsGlb(); emit saveAsGlb();
} else if (1 == currentIndex) { } else if (1 == currentIndex) {
this->hide();
emit saveAsFbx(); emit saveAsFbx();
} }
}); });