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

summaryrefslogtreecommitdiff
path: root/source/frontend/StarTitleScreen.cpp
diff options
context:
space:
mode:
authorDegranon <boba09@list.ru>2025-02-03 18:50:12 +0100
committerDegranon <boba09@list.ru>2025-02-03 18:50:12 +0100
commit017441cb88c7748d3808867e9bb8cfb8ac21ec90 (patch)
tree91e48fe9416c443cd732f40ae33db06bde45129d /source/frontend/StarTitleScreen.cpp
parentc1e0865f2f1e842ef94bb85b3a1c8b13ebb76ba2 (diff)
Focus on the password field when selecting the servers
Diffstat (limited to 'source/frontend/StarTitleScreen.cpp')
-rw-r--r--source/frontend/StarTitleScreen.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/frontend/StarTitleScreen.cpp b/source/frontend/StarTitleScreen.cpp
index 747744c..a32b51a 100644
--- a/source/frontend/StarTitleScreen.cpp
+++ b/source/frontend/StarTitleScreen.cpp
@@ -384,6 +384,9 @@ void TitleScreen::initMultiPlayerMenu() {
setMultiPlayerPort(data.getString("port", ""));
setMultiPlayerAccount(data.getString("account", ""));
setMultiPlayerPassword(data.getString("password", ""));
+
+ if (auto passwordWidget = m_multiPlayerMenu->fetchChild("password"))
+ passwordWidget->focus();
}
});