Fixed two avatar related bugs, which were both result of not adding an avatar to the manager when it was configured (a restart was required). Fixed "the server requested a non-existing avatar", and fixed showing own avatar in lobby directly after setting it.
This commit is contained in:
@@ -967,7 +967,10 @@ void mainWindowImpl::callSettingsDialog() {
|
||||
|
||||
if (myConfig->readConfigInt("ShowRightToolBox")) { groupBox_RightToolBox->show(); }
|
||||
else { groupBox_RightToolBox->hide(); }
|
||||
|
||||
|
||||
//Add avatar (if set)
|
||||
mySession->addOwnAvatar(myConfig->readConfigString("MyAvatar"));
|
||||
|
||||
//Falls Spielernamen geändert wurden --> neu zeichnen --> erst beim nächsten Neustart neu ausgelesen
|
||||
if (mySettingsDialog->getPlayerNickIsChanged() && mySession->getCurrentGame() && !mySession->isNetworkClientRunning()) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user