aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
diff options
context:
space:
mode:
authorMangosArentLiterature <58055358+MangosArentLiterature@users.noreply.github.com>2021-04-28 00:43:06 -0500
committerMangosArentLiterature <58055358+MangosArentLiterature@users.noreply.github.com>2021-04-28 00:43:06 -0500
commit99d083d114844ce3f8274663da212784595421ed (patch)
tree23dc0f0b2d3737dffb259c105c02d4aae83373cb /src/courtroom.cpp
parentf08a293a2f052806480984717cf2961f8b6824ac (diff)
Add default shownames
Adds a new setting to config.ini to set a default showname. This works similarly to default username, but for IC shownames, setting the client's showname automatically. Like default username, this has a 30 character limit. * Adds a new option to config.ini, default_showname. * Adds this setting to the options dialog. * Adds get_default_showname() for retrieving this showname. * Sets the showname box to this value upon joining a server.
Diffstat (limited to 'src/courtroom.cpp')
-rw-r--r--src/courtroom.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 301b82e4..71fa828d 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -161,6 +161,7 @@ Courtroom::Courtroom(AOApplication *p_ao_app) : QMainWindow()
ui_ic_chat_name = new QLineEdit(this);
ui_ic_chat_name->setFrame(false);
ui_ic_chat_name->setPlaceholderText(tr("Showname"));
+ ui_ic_chat_name->setText(p_ao_app->get_default_showname());
ui_ic_chat_name->setObjectName("ui_ic_chat_name");
ui_ic_chat_message = new AOLineEdit(this);