mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-06-24 14:40:53 -04:00
Greatly improve performance when rendering entry view (#9398)
* Fixes #9390 * Create one QCollator per entry view instead of creating one on every sort request. This greatly improves the speed of sorting and displaying entries. * Rewrite recursive multiple placeholder replacement to use QRegularExpression
This commit is contained in:
parent
16b3d32ca5
commit
44b152eb70
4 changed files with 16 additions and 12 deletions
|
@ -355,7 +355,11 @@ bool KeeAgentSettings::inEntryAttachments(const EntryAttachments* attachments)
|
|||
*/
|
||||
bool KeeAgentSettings::fromEntry(const Entry* entry)
|
||||
{
|
||||
return fromXml(entry->attachments()->value("KeeAgent.settings"));
|
||||
const auto attachments = entry->attachments();
|
||||
if (attachments->hasKey("KeeAgent.settings")) {
|
||||
return fromXml(attachments->value("KeeAgent.settings"));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue