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

summaryrefslogtreecommitdiff
path: root/source/frontend/StarMainInterface.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2025-02-23 06:22:09 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2025-02-23 06:22:09 +1100
commit2b7d7cbdd88d97b581cbd283ffddb128df91ea73 (patch)
tree5395082ecae8a808fe62ab8cb9d1a2e3848db307 /source/frontend/StarMainInterface.cpp
parent70e7b383902f0f5c16e47b20095953c7e0e1100b (diff)
Update StarMainInterface.cpp
Diffstat (limited to 'source/frontend/StarMainInterface.cpp')
-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);