Use first line of notes for summary

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2023-03-18 12:57:44 +00:00
parent ddca838e46
commit 5346dfc782

View File

@ -17,7 +17,6 @@
*/ */
#include "ExportMrPackDialog.h" #include "ExportMrPackDialog.h"
#include "Application.h"
#include "ui/dialogs/CustomMessageBox.h" #include "ui/dialogs/CustomMessageBox.h"
#include "ui/dialogs/ProgressDialog.h" #include "ui/dialogs/ProgressDialog.h"
#include "ui_ExportMrPackDialog.h" #include "ui_ExportMrPackDialog.h"
@ -35,6 +34,7 @@ ExportMrPackDialog::ExportMrPackDialog(InstancePtr instance, QWidget* parent)
{ {
ui->setupUi(this); ui->setupUi(this);
ui->name->setText(instance->name()); ui->name->setText(instance->name());
ui->summary->setText(instance->notes().split(QRegExp("\\r?\\n"))[0]);
auto model = new QFileSystemModel(this); auto model = new QFileSystemModel(this);
// use the game root - everything outside cannot be exported // use the game root - everything outside cannot be exported