Remove save() from load monitor dir

Calling save() from loadMonitorDir() can cause the file watcher (when connected to same directory as download directory) to listen to directoryChanged signal, and going into an infinite loop.
We already call save() in the library destructor, hence no functionality is compromised.
This commit is contained in:
Nikhil Tanwar 2022-02-23 23:52:11 +05:30 committed by Emmanuel Engelhart
parent 2b62e42c55
commit 70e13865aa
No known key found for this signature in database
GPG Key ID: 120B30D020B553D3

View File

@ -167,7 +167,6 @@ void Library::loadMonitorDir(QString monitorDir)
removeBookFromLibraryById(QString::fromStdString(m_library.getBookByPath(bookPath.toStdString()).getId()));
}
emit(booksChanged());
save();
}
void Library::asyncLoadMonitorDir(QString dir)