mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 00:27:42 +00:00
Require Blender 2.90 & other fixes
This commit is contained in:
@@ -83,7 +83,8 @@ MainWindow::MainWindow(QWidget* parent)
|
||||
m_ui->processOutput->setFont(mFont);
|
||||
m_cursor = QTextCursor(m_ui->processOutput->document());
|
||||
connect(m_ui->saveLogButton, &QPushButton::pressed, this, [this] {
|
||||
QString defaultFileName = QStringLiteral("urde-") + QDateTime::currentDateTime().toString(Qt::DateFormat::ISODate);
|
||||
QString defaultFileName = QStringLiteral("urde-") + QDateTime::currentDateTime().toString(Qt::DateFormat::ISODate) +
|
||||
QStringLiteral(".log");
|
||||
defaultFileName.replace(QLatin1Char(':'), QLatin1Char('-'));
|
||||
const QString fileName =
|
||||
QFileDialog::getSaveFileName(this, tr("Save Log"), defaultFileName, QStringLiteral("*.log"));
|
||||
@@ -525,6 +526,9 @@ void MainWindow::initSlots() {
|
||||
|
||||
setPath(dialog.selectedFiles().at(0));
|
||||
});
|
||||
connect(m_ui->pathEdit, &QLineEdit::editingFinished, [this]() {
|
||||
setPath(m_ui->pathEdit->text());
|
||||
});
|
||||
|
||||
connect(m_ui->downloadButton, &QPushButton::clicked, this, &MainWindow::onDownloadPressed);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user