Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'source/frontend')
-rw-r--r--source/frontend/StarMainInterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/frontend/StarMainInterface.cpp b/source/frontend/StarMainInterface.cpp
index 2b2bb5f..033e1c9 100644
--- a/source/frontend/StarMainInterface.cpp
+++ b/source/frontend/StarMainInterface.cpp
@@ -171,12 +171,12 @@ MainInterface::MainInterface(UniverseClientPtr client, WorldPainterPtr painter,
auto charSelectionMenu = make_shared<CharSelectionPane>(m_client->playerStorage(), [=]() {},
[=](PlayerPtr mainPlayer) {
+ m_client->switchPlayer(mainPlayer->uuid());
auto configuration = Root::singleton().configuration();
if (configuration->get("characterSwapMovesToFront", false).toBool())
m_client->playerStorage()->moveToFront(mainPlayer->uuid());
if (configuration->get("characterSwapDismisses", false).toBool())
m_paneManager.dismissRegisteredPane(MainInterfacePanes::CharacterSwap);
- m_client->switchPlayer(mainPlayer->uuid());
}, [=](Uuid) {});
{
charSelectionMenu->setReadOnly(true);