diff options
author | jak1 <mike.wollmann@gmail.com> | 2021-06-06 14:13:02 +0200 |
---|---|---|
committer | jak1 <mike.wollmann@gmail.com> | 2021-06-06 14:13:02 +0200 |
commit | 971db6eb1db5fcf4e463b3a92ad2d73ad375193f (patch) | |
tree | b5f8ef33314b64013be56ab57ac7c6d8276619f6 /src/gui/windowmanager.cpp | |
parent | 97c2c1432bdb38d400b4a48379fbdf552fc8446f (diff) | |
download | manaverse-971db6eb1db5fcf4e463b3a92ad2d73ad375193f.tar.gz manaverse-971db6eb1db5fcf4e463b3a92ad2d73ad375193f.tar.bz2 manaverse-971db6eb1db5fcf4e463b3a92ad2d73ad375193f.tar.xz manaverse-971db6eb1db5fcf4e463b3a92ad2d73ad375193f.zip |
added Session in windowtitle insteed of loginname (-S)
Diffstat (limited to 'src/gui/windowmanager.cpp')
-rw-r--r-- | src/gui/windowmanager.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
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", |