mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 14:10:54 -04:00
friend connect wizard - add tooltips for checkboxes; hide 40peers warning if you have <30 friends; restored back own cert actions for advanced mode
This commit is contained in:
parent
58c296c69d
commit
e82b4fe3c3
2 changed files with 27 additions and 2 deletions
|
@ -42,6 +42,7 @@
|
|||
|
||||
#include <retroshare/rsiface.h>
|
||||
#include <retroshare/rsbanlist.h>
|
||||
#include <retroshare/rsconfig.h>
|
||||
|
||||
#include "ConnectProgressDialog.h"
|
||||
#include "gui/GetStartedDialog.h"
|
||||
|
@ -120,8 +121,17 @@ ConnectFriendWizard::ConnectFriendWizard(QWidget *parent) :
|
|||
|
||||
body += "\n" + GetStartedDialog::GetCutBelowText();
|
||||
body += "\n\n" + QString::fromUtf8(rsPeers->GetRetroshareInvite(false).c_str());
|
||||
|
||||
ui->userFrame->hide();
|
||||
|
||||
std::string advsetting;
|
||||
if(rsConfig->getConfigurationOption(RS_CONFIG_ADVANCED, advsetting) && (advsetting == "YES"))
|
||||
{ }
|
||||
else
|
||||
ui->userFrame->hide();
|
||||
|
||||
unsigned int onlineCount = 0, friendCount = 0;
|
||||
rsPeers->getPeerCount (&friendCount, &onlineCount, false);
|
||||
if(friendCount<30)
|
||||
ui->makefriend_infolabel->hide();
|
||||
|
||||
updateStylesheet();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue