1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-25 05:17:44 +00:00

Set the window title to the currently open Excel sheet name

This commit is contained in:
Joshua Goins 2025-03-24 22:09:24 -04:00
parent 04207ecef7
commit fbc1ff134c

View file

@ -42,7 +42,7 @@ MainWindow::MainWindow(GameData *data)
auto exdPart = new EXDPart(data);
dummyWidget->addWidget(exdPart);
connect(listWidget, &SheetListWidget::sheetSelected, this, [data, exdPart](const QString &name) {
connect(listWidget, &SheetListWidget::sheetSelected, this, [this, data, exdPart](const QString &name) {
QString definitionPath;
const QDir dataDir = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
@ -54,6 +54,8 @@ MainWindow::MainWindow(GameData *data)
auto file = physis_gamedata_extract_file(data, pathStd.c_str());
exdPart->loadSheet(name, file, definitionsDir.absoluteFilePath(QStringLiteral("%1.json").arg(name)));
setWindowTitle(name);
});
setupActions();