aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/dialogs/OfflineLoginDialog.ui
diff options
context:
space:
mode:
authorJim Ramsay <i.am@jimramsay.com>2022-03-17 21:47:34 -0400
committerJim Ramsay <i.am@jimramsay.com>2022-03-19 10:12:07 -0400
commit90780818cab043003cb4d18d3865323ce07fb92d (patch)
treeb8215c7f83b58251313d88acdac64d73f3ddbfca /launcher/ui/dialogs/OfflineLoginDialog.ui
parentacdb54b88e0fbdcb46aba3ed3d90e8b7fed08357 (diff)
downloadPrismLauncher-90780818cab043003cb4d18d3865323ce07fb92d.tar.gz
PrismLauncher-90780818cab043003cb4d18d3865323ce07fb92d.tar.bz2
PrismLauncher-90780818cab043003cb4d18d3865323ce07fb92d.zip
Limit offline username to 16 characters with override
Offline usernames longer than 16 characters won't be able to connect to LAN games or offline-mode servers, so just don't let it happen. Add a checkbox to allow people to unrestrict usernames if they want. Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
Diffstat (limited to 'launcher/ui/dialogs/OfflineLoginDialog.ui')
-rw-r--r--launcher/ui/dialogs/OfflineLoginDialog.ui13
1 files changed, 13 insertions, 0 deletions
diff --git a/launcher/ui/dialogs/OfflineLoginDialog.ui b/launcher/ui/dialogs/OfflineLoginDialog.ui
index d8964a2e..4633cbe3 100644
--- a/launcher/ui/dialogs/OfflineLoginDialog.ui
+++ b/launcher/ui/dialogs/OfflineLoginDialog.ui
@@ -35,12 +35,25 @@
</item>
<item>
<widget class="QLineEdit" name="userTextBox">
+ <property name="maxLength">
+ <number>16</number>
+ </property>
<property name="placeholderText">
<string>Username</string>
</property>
</widget>
</item>
<item>
+ <widget class="QCheckBox" name="allowLongUsernames">
+ <property name="toolTip">
+ <string>Usernames longer than 16 characters cannot be used for LAN games or offline-mode servers.</string>
+ </property>
+ <property name="text">
+ <string>Allow long usernames</string>
+ </property>
+ </widget>
+ </item>
+ <item>
<widget class="QProgressBar" name="progressBar">
<property name="value">
<number>69</number>