X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fbacklogsettings.h;h=04ccc52803499cb55baeb07df1491f5b6fa4a35a;hp=30335aee1a65bd49ecf910f5c872bbf0f55cbdee;hb=68878dc8366f2f4a0afe132847aad9a51a80cdbf;hpb=9fc57dc2c000e80fb8bd746a090e2e8210e1278e diff --git a/src/client/backlogsettings.h b/src/client/backlogsettings.h index 30335aee..04ccc528 100644 --- a/src/client/backlogsettings.h +++ b/src/client/backlogsettings.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -23,11 +23,16 @@ #include "clientsettings.h" +// For backlog requester types +#include "backlogrequester.h" + class BacklogSettings : public ClientSettings { public: BacklogSettings() : ClientSettings("Backlog") {} - inline int requesterType() { return localValue("RequesterType", 1).toInt(); } + inline int requesterType() { return localValue("RequesterType", BacklogRequester::PerBufferUnread).toInt(); } + // Default to PerBufferUnread to help work around performance problems on connect when there's + // many buffers that don't have much activity. inline void setRequesterType(int requesterType) { setLocalValue("RequesterType", requesterType); } inline int dynamicBacklogAmount() { return localValue("DynamicBacklogAmount", 200).toInt(); }