X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fclient%2Fbacklogsettings.h;h=eec77723f871f34eb7885f1ebcbaa36b13c1352a;hb=c0b6aaa15a39ddd1d4ad3e2dcbee8e03e41ae59b;hp=d1d8d9f910acc3d8a0a15da860c12e1df1d025cc;hpb=32582b14a442c35d1a64131ac10792683fb06f82;p=quassel.git diff --git a/src/client/backlogsettings.h b/src/client/backlogsettings.h index d1d8d9f9..eec77723 100644 --- a/src/client/backlogsettings.h +++ b/src/client/backlogsettings.h @@ -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(); }