Skip to content

Commit

Permalink
stop continually migrate recent data
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Apr 16, 2023
1 parent a0a75f0 commit 9994a52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/settings.cpp
Expand Up @@ -71,7 +71,7 @@ void ShotcutSettings::migrateRecent()
{
// Migrate recent to separate INI file
auto oldRecents = settings.value(kRecentKey).toStringList();
if (!oldRecents.isEmpty()) {
if (recent().isEmpty() && !oldRecents.isEmpty()) {
auto newRecents = recent();
for (const auto &a : oldRecents) {
if (a.size() < ShotcutSettings::MaxPath && !newRecents.contains(a)) {
Expand Down

0 comments on commit 9994a52

Please sign in to comment.