Add in-game reload message

This commit is contained in:
GriffinR
2025-02-19 11:39:45 -05:00
parent 43d5e32b96
commit 1ab8b830d8
3 changed files with 14 additions and 0 deletions

View File

@@ -1565,6 +1565,15 @@ void MainWindow::save(bool currentOnly) {
}
updateWindowTitle();
updateMapList();
if (!porymapConfig.shownInGameReloadMessage) {
// Show a one-time warning that the user may need to reload their map to see their new changes.
static const QString message = QStringLiteral("Reload your map in-game!\n\nIf your game is currently saved on a map you have edited, "
"the changes may not appear until you leave the map and return.");
InfoMessage::show(message, this);
porymapConfig.shownInGameReloadMessage = true;
}
saveGlobalConfigs();
}