Move unlisted stamps to the back

Rather than to the front. It's nice to immediately see stamps that you haven't seen in years but it's even nicer if your most recently used stamps stay easily accessible.
This commit is contained in:
Tamás Bálint Misius 2024-03-18 12:25:10 +01:00
parent 3fb356e2a9
commit 4b866c409a
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -378,7 +378,6 @@ void Client::RescanStamps()
newStampIDs.push_back(stampID);
}
}
auto oldCount = newStampIDs.size();
auto stampIDsSet = std::set<ByteString>(stampIDs.begin(), stampIDs.end());
for (auto &stampID : stampFilesSet)
{
@ -390,8 +389,6 @@ void Client::RescanStamps()
}
if (changed)
{
// Move newly discovered stamps to front.
std::rotate(newStampIDs.begin(), newStampIDs.begin() + oldCount, newStampIDs.end());
stampIDs = newStampIDs;
WriteStamps();
}