From 971db6eb1db5fcf4e463b3a92ad2d73ad375193f Mon Sep 17 00:00:00 2001 From: jak1 Date: Sun, 6 Jun 2021 14:13:02 +0200 Subject: added Session in windowtitle insteed of loginname (-S) --- src/gui/windowmanager.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp index a65e0cd1a..15a536f15 100644 --- a/src/gui/windowmanager.cpp +++ b/src/gui/windowmanager.cpp @@ -227,7 +227,14 @@ void WindowManager::updateTitle() if (settings.login.empty()) str = settings.serverName; else - str.append(settings.login).append(" ").append(settings.serverName); + { + // dont show ugly account names in title, use "Session" insteed. + if (settings.options.uniqueSession) + str.append("Session "); + else + str.append(settings.login); + str.append(" ").append(settings.serverName); + } if (str.empty()) { settings.windowCaption = strprintf("%s %s", -- cgit v1.2.3-70-g09d2