From b015967d0720e16ef0bef1bc16e4a02f0d3c3cd5 Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Sun, 6 Aug 2023 18:21:47 +0200 Subject: [PATCH] Replace titles for hidden tabs warning and color picker dialog --- src/widgets/Notebook.cpp | 4 +++- src/widgets/dialogs/ColorPickerDialog.cpp | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/widgets/Notebook.cpp b/src/widgets/Notebook.cpp index 89f1e202e..a9af5190c 100644 --- a/src/widgets/Notebook.cpp +++ b/src/widgets/Notebook.cpp @@ -2,6 +2,7 @@ #include "Application.hpp" #include "common/QLogging.hpp" +#include "common/Version.hpp" #include "controllers/hotkeys/HotkeyCategory.hpp" #include "controllers/hotkeys/HotkeyController.hpp" #include "singletons/Resources.hpp" @@ -497,7 +498,8 @@ void Notebook::showTabVisibilityInfoPopup() ")"; } QMessageBox msgBox(this->window()); - msgBox.window()->setWindowTitle("Chatterino - hidden tabs"); + msgBox.window()->setWindowTitle(Version::instance().fullVersion() + + " - hidden tabs"); msgBox.setText("You've just hidden your tabs."); msgBox.setInformativeText( "You can toggle tabs by using the keyboard shortcut " + hotkeyInfo + diff --git a/src/widgets/dialogs/ColorPickerDialog.cpp b/src/widgets/dialogs/ColorPickerDialog.cpp index c15e4b16a..e54223f66 100644 --- a/src/widgets/dialogs/ColorPickerDialog.cpp +++ b/src/widgets/dialogs/ColorPickerDialog.cpp @@ -1,5 +1,6 @@ #include "widgets/dialogs/ColorPickerDialog.hpp" +#include "common/Version.hpp" #include "providers/colors/ColorProvider.hpp" #include "singletons/Theme.hpp" #include "util/LayoutCreator.hpp" @@ -281,7 +282,7 @@ void ColorPickerDialog::initDefaultColors(LayoutCreator &creator) void ColorPickerDialog::initColorPicker(LayoutCreator &creator) { - this->setWindowTitle("Chatterino - color picker"); + this->setWindowTitle(Version::instance().fullVersion() + " - color picker"); auto cpPanel = creator.setLayoutType(); /*