From 9283c3f401b9100cafe3e200956c63aae701034b Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Sun, 6 Aug 2023 18:25:32 +0200 Subject: [PATCH] Replace StreamLink and LastRunCrashDialog window titles --- src/util/StreamLink.cpp | 3 ++- src/widgets/dialogs/LastRunCrashDialog.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/util/StreamLink.cpp b/src/util/StreamLink.cpp index 379c2699a..e007a9db5 100644 --- a/src/util/StreamLink.cpp +++ b/src/util/StreamLink.cpp @@ -57,7 +57,8 @@ namespace { void showStreamlinkNotFoundError() { static QErrorMessage *msg = new QErrorMessage; - msg->setWindowTitle("Chatterino - streamlink not found"); + msg->setWindowTitle(Version::instance().fullVersion() + + " - streamlink not found"); if (getSettings()->streamlinkUseCustomPath) { diff --git a/src/widgets/dialogs/LastRunCrashDialog.cpp b/src/widgets/dialogs/LastRunCrashDialog.cpp index f3dc77921..1484116a5 100644 --- a/src/widgets/dialogs/LastRunCrashDialog.cpp +++ b/src/widgets/dialogs/LastRunCrashDialog.cpp @@ -1,5 +1,6 @@ #include "LastRunCrashDialog.hpp" +#include "common/Version.hpp" #include "singletons/Updates.hpp" #include "util/LayoutCreator.hpp" #include "util/PostToThread.hpp" @@ -14,7 +15,7 @@ namespace chatterino { LastRunCrashDialog::LastRunCrashDialog() { this->setWindowFlag(Qt::WindowContextHelpButtonHint, false); - this->setWindowTitle("Chatterino"); + this->setWindowTitle(Version::instance().fullVersion()); auto layout = LayoutCreator(this).setLayoutType();