mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added proper notification when removing an extra file
This commit is contained in:
parent
7ab7c7db93
commit
c77a28c17a
@ -962,10 +962,14 @@ int p3FileDatabase::getSharedDirStatistics(const RsPeerId& pid,SharedDirStats& s
|
|||||||
|
|
||||||
void p3FileDatabase::removeExtraFile(const RsFileHash& hash)
|
void p3FileDatabase::removeExtraFile(const RsFileHash& hash)
|
||||||
{
|
{
|
||||||
|
{
|
||||||
RS_STACK_MUTEX(mFLSMtx) ;
|
RS_STACK_MUTEX(mFLSMtx) ;
|
||||||
|
|
||||||
mExtraFiles->removeExtraFile(hash);
|
mExtraFiles->removeExtraFile(hash);
|
||||||
mLastExtraFilesCacheUpdate = 0 ; // forced cache reload
|
mLastExtraFilesCacheUpdate = 0 ; // forced cache reload
|
||||||
|
}
|
||||||
|
|
||||||
|
RsServer::notify()->notifyListChange(NOTIFY_LIST_DIRLIST_LOCAL, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void p3FileDatabase::getExtraFilesDirDetails(void *ref,DirectoryStorage::EntryIndex e,DirDetails& d) const
|
void p3FileDatabase::getExtraFilesDirDetails(void *ref,DirectoryStorage::EntryIndex e,DirDetails& d) const
|
||||||
|
Loading…
Reference in New Issue
Block a user