aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/MainWindow.cpp
diff options
context:
space:
mode:
authorEzekiel Smith <ezekielsmith@protonmail.com>2022-06-27 01:13:58 +1000
committerGitHub <noreply@github.com>2022-06-27 01:13:58 +1000
commit9cc235cde0624e7797d6a37ebc3171b9f69ac926 (patch)
tree72500d8020bdad0574180af89cffebdc85b8274d /launcher/ui/MainWindow.cpp
parent91375e4c6d2a5767495e8af0845ebe28ed969c48 (diff)
parent5335540c333c392019e89bd8fba9ff56250cecdd (diff)
downloadPrismLauncher-9cc235cde0624e7797d6a37ebc3171b9f69ac926.tar.gz
PrismLauncher-9cc235cde0624e7797d6a37ebc3171b9f69ac926.tar.bz2
PrismLauncher-9cc235cde0624e7797d6a37ebc3171b9f69ac926.zip
Merge pull request #811 from jn64/fix/window-title
Fix duplicate name in window title
Diffstat (limited to 'launcher/ui/MainWindow.cpp')
-rw-r--r--launcher/ui/MainWindow.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp
index 210442df..8c70cd49 100644
--- a/launcher/ui/MainWindow.cpp
+++ b/launcher/ui/MainWindow.cpp
@@ -822,7 +822,7 @@ public:
}
MainWindow->resize(800, 600);
MainWindow->setWindowIcon(APPLICATION->getThemedIcon("logo"));
- MainWindow->setWindowTitle(BuildConfig.LAUNCHER_DISPLAYNAME);
+ MainWindow->setWindowTitle(APPLICATION->applicationDisplayName());
#ifndef QT_NO_ACCESSIBILITY
MainWindow->setAccessibleName(BuildConfig.LAUNCHER_NAME);
#endif
@@ -857,8 +857,6 @@ public:
void retranslateUi(MainWindow *MainWindow)
{
- QString winTitle = tr("%1 - Version %2", "Launcher - Version X").arg(BuildConfig.LAUNCHER_DISPLAYNAME, BuildConfig.printableVersionString());
- MainWindow->setWindowTitle(winTitle);
// all the actions
for(auto * item: all_actions)
{