mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-30 19:34:31 -04:00
made RS not to ask for plugin confirmation on first load
This commit is contained in:
parent
345f24eb5f
commit
e8415c4f03
9 changed files with 19 additions and 12 deletions
|
@ -301,8 +301,13 @@ bool NotifyQt::askForPassword(const std::string& title, const std::string& key_d
|
|||
|
||||
return false;
|
||||
}
|
||||
bool NotifyQt::askForPluginConfirmation(const std::string& plugin_file_name, const std::string& plugin_file_hash)
|
||||
bool NotifyQt::askForPluginConfirmation(const std::string& plugin_file_name, const std::string& plugin_file_hash, bool first_time)
|
||||
{
|
||||
// By default, when no information is known about plugins, just dont load them. They will be enabled from the GUI by the user.
|
||||
|
||||
if(first_time)
|
||||
return false ;
|
||||
|
||||
RsAutoUpdatePage::lockAllEvents() ;
|
||||
|
||||
QMessageBox dialog;
|
||||
|
|
|
@ -69,7 +69,7 @@ class NotifyQt: public QObject, public NotifyClient
|
|||
virtual void notifyDownloadComplete(const std::string& fileHash);
|
||||
virtual void notifyDownloadCompleteCount(uint32_t count);
|
||||
virtual bool askForPassword(const std::string& title, const std::string& key_details, bool prev_is_bad, std::string& password, bool &cancelled);
|
||||
virtual bool askForPluginConfirmation(const std::string& plugin_filename, const std::string& plugin_file_hash);
|
||||
virtual bool askForPluginConfirmation(const std::string& plugin_filename, const std::string& plugin_file_hash,bool first_time);
|
||||
|
||||
// Queues the signature event so that it canhappen in the main GUI thread (to ask for passwd).
|
||||
// To use this function: call is multiple times as soon as it returns true.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue