mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-27 18:36:15 -04:00
patch to avoid re-asking for rejected plugins when the executable is upgraded.
This commit is contained in:
parent
88525e48c5
commit
0af05d2517
@ -503,12 +503,15 @@ bool RsPluginManager::loadList(std::list<RsItem*>& list)
|
|||||||
delete (*it);
|
delete (*it);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Rejected hashes are always kept, so that RS wont ask again if the executable hash has changed.
|
||||||
|
//
|
||||||
|
_rejected_hashes = rejected_hash_candidates ;
|
||||||
|
|
||||||
if(reference_executable_hash == _current_executable_hash)
|
if(reference_executable_hash == _current_executable_hash)
|
||||||
{
|
{
|
||||||
std::cerr << "(II) Executable hash matches. Updating the list of accepted/rejected plugins." << std::endl;
|
std::cerr << "(II) Executable hash matches. Updating the list of accepted/rejected plugins." << std::endl;
|
||||||
|
|
||||||
_accepted_hashes = accepted_hash_candidates ;
|
_accepted_hashes = accepted_hash_candidates ;
|
||||||
_rejected_hashes = rejected_hash_candidates ;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
std::cerr << "(WW) Executable hashes do not match. Executable hash has changed. Discarding the list of accepted/rejected plugins." << std::endl;
|
std::cerr << "(WW) Executable hashes do not match. Executable hash has changed. Discarding the list of accepted/rejected plugins." << std::endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user