summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/setup_chat.cpp
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2024-05-16 15:08:42 +0200
committerFedja Beader <fedja@protonmail.ch>2024-05-29 21:39:28 +0000
commit065c204bd2d88d5e1695aee782e44774469fecf3 (patch)
tree6e1b75d17aa67047ab1423b5910f4a07d1115d72 /src/gui/widgets/tabs/setup_chat.cpp
parente5957be971758eaa33c92e92a1fec47cbd001ca2 (diff)
downloadmanaplus-065c204bd2d88d5e1695aee782e44774469fecf3.tar.gz
manaplus-065c204bd2d88d5e1695aee782e44774469fecf3.tar.bz2
manaplus-065c204bd2d88d5e1695aee782e44774469fecf3.tar.xz
manaplus-065c204bd2d88d5e1695aee782e44774469fecf3.zip
Switch "show chat history" into a line limit field and considerably
raise default (5->100).
Diffstat (limited to 'src/gui/widgets/tabs/setup_chat.cpp')
-rw-r--r--src/gui/widgets/tabs/setup_chat.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/widgets/tabs/setup_chat.cpp b/src/gui/widgets/tabs/setup_chat.cpp
index f42f34c5a..ae9043962 100644
--- a/src/gui/widgets/tabs/setup_chat.cpp
+++ b/src/gui/widgets/tabs/setup_chat.cpp
@@ -148,11 +148,12 @@ Setup_Chat::Setup_Chat(const Widget2 *const widget) :
MainConfig_true);
// TRANSLATORS: settings option
- new SetupItemCheckBox(_("Show chat history"),
+ new SetupItemIntTextField(_("Show chat history lines"),
// TRANSLATORS: settings description
- _("If this setting enabled, client will load old chat tabs content "
- "from logs on startup instead of starting with empty chat tabs."),
- "showChatHistory", this, "showChatHistoryEvent",
+ _("If this number is set to above 0, the client will load old chat"
+ " tabs content from logs on startup instead of starting with empty"
+ " chat tabs."),
+ "loadChatHistoryLines", this, "loadChatHistoryLinesEvent", 0, 10000,
MainConfig_true);
// TRANSLATORS: settings option