diff src/gui/dialog/about.cc @ 221:53211cb1e7f5

library: add initial library stuff nice
author Paper <paper@paper.us.eu.org>
date Mon, 08 Jan 2024 13:21:08 -0500
parents 649786bae914
children 7ca56c4ac0bc
line wrap: on
line diff
--- a/src/gui/dialog/about.cc	Mon Jan 08 11:56:09 2024 -0500
+++ b/src/gui/dialog/about.cc	Mon Jan 08 13:21:08 2024 -0500
@@ -1,6 +1,5 @@
 #include "gui/dialog/about.h"
 #include "core/json.h"
-#include "core/version.h"
 #include "core/session.h"
 #include "core/strings.h"
 #include "gui/widgets/text.h"
@@ -48,7 +47,7 @@
 	/* we have to generate this on-the-fly for localization purposes */
 	const QString html = QString(
 		"<body>"
-		"  <h2 style=\"font-weight: normal;\"><strong>Minori</strong> " + QString::fromUtf8(MINORI_VERSION.data(), MINORI_VERSION.size()) + "</h2>"
+		"  <h2 style=\"font-weight: normal;\"><strong>Minori</strong> v" + Strings::ToQString(session.version.to_string()) + "</h2>"
 		"  <p>"
 		"    <strong>" + QCoreApplication::tr("Author:") + "</strong><br>"
 		"    Paper (@mrpapersonic)"