mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 18:45:17 -04:00
fixed constant updating of flat dir model. Had to limit to at most 10000 files to keep it interactive.
This commit is contained in:
parent
7b78a6843b
commit
da84b887a9
2 changed files with 42 additions and 27 deletions
|
@ -199,11 +199,7 @@ class FlatStyle_RDM: public RetroshareDirModel
|
|||
Q_OBJECT
|
||||
|
||||
public:
|
||||
FlatStyle_RDM(bool mode)
|
||||
: RetroshareDirModel(mode), _ref_mutex("Flat file list")
|
||||
{
|
||||
_needs_update = true ;
|
||||
}
|
||||
FlatStyle_RDM(bool mode);
|
||||
|
||||
virtual ~FlatStyle_RDM() ;
|
||||
|
||||
|
@ -233,6 +229,7 @@ class FlatStyle_RDM: public RetroshareDirModel
|
|||
std::vector<void *> _ref_entries ;// used to store the refs to display
|
||||
std::vector<void *> _ref_stack ; // used to store the refs to update
|
||||
bool _needs_update ;
|
||||
time_t _last_update ;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue