mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 11:37:56 -04:00
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:
parent
2b62e42c55
commit
70e13865aa
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user