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:
parent
3fb356e2a9
commit
4b866c409a
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user