1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-15 13:33:36 +02:00

Merge pull request #4826 from godric3/map-editor-use-vcmi-versioning

Don't use separate versioning for map editor
This commit is contained in:
Ivan Savenko 2024-10-27 21:16:08 +02:00 committed by GitHub
commit 3a4ed1e351
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,6 @@
#include "../Global.h"
#define VCMI_EDITOR_VERSION "0.2"
#define VCMI_EDITOR_NAME "VCMI Map Editor"
#include <QtWidgets>

View File

@ -182,6 +182,7 @@ MainWindow::MainWindow(QWidget* parent) :
console = new CConsoleHandler();
logConfig = new CBasicLogConfigurator(logPath, console);
logConfig->configureDefault();
logGlobal->info("Starting map editor of '%s'", GameConstants::VCMI_VERSION);
logGlobal->info("The log file will be saved to %s", logPath);
//init
@ -317,7 +318,7 @@ void MainWindow::setStatusMessage(const QString & status)
void MainWindow::setTitle()
{
QString title = QString("%1%2 - %3 (v%4)").arg(filename, unsaved ? "*" : "", VCMI_EDITOR_NAME, VCMI_EDITOR_VERSION);
QString title = QString("%1%2 - %3 (%4)").arg(filename, unsaved ? "*" : "", VCMI_EDITOR_NAME, GameConstants::VCMI_VERSION.c_str());
setWindowTitle(title);
}