This commit is contained in:
defnax 2025-07-15 17:30:25 +02:00 committed by GitHub
commit 45c395dc20
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 33 additions and 2 deletions

View file

@ -49,6 +49,7 @@
#define IMAGE_GOOD ":/images/accepted16.png"
#define IMAGE_BAD ":/icons/cancel.svg"
#define IMAGE_TOR ":/icons/Tor-logo-2011.png"
class EntropyCollectorWidget: public QTextBrowser
{
@ -201,6 +202,8 @@ GenCertDialog::GenCertDialog(bool onlyGenerateIdentity, QWidget *parent)
// ui.adv_checkbox->setVisible(true);
//#endif
ui.pixmaplabel->setVisible(false);
initKeyList();
setupState();
updateCheckLabels();
@ -586,6 +589,7 @@ void GenCertDialog::genPerson()
//ui.reuse_existing_node_CB->hide();
ui.name_label->hide();
ui.name_input->hide();
ui.profile_name_check_LB->hide();
ui.nickname_label->hide();
ui.nickname_input->hide();
ui.password2_label->hide();
@ -605,8 +609,24 @@ void GenCertDialog::genPerson()
ui.keylength_label->hide();
ui.keylength_comboBox->hide();
ui.randomness_label_->hide();
ui.entropy_bar->hide();
ui.randomness_check_LB->hide();
ui.nodeType_LB->hide();
ui.adv_checkbox->hide();
ui.groupBox->hide();
setCursor(Qt::WaitCursor) ;
if(isAutoTor && RsTor::isTorAvailable())
{
ui.info_Label->setVisible(true) ;
ui.pixmaplabel->setVisible(true) ;
ui.info_Label->setAlignment(Qt::AlignCenter);
ui.info_Label->setText("RetroShare is starting with Tor...") ;
ui.pixmaplabel->setPixmap(FilesDefs::getPixmapFromQtResourcePath(IMAGE_TOR)) ;
}
QCoreApplication::processEvents();
QAbstractEventDispatcher* ed = QAbstractEventDispatcher::instance();
#ifdef DEBUG_GENCERTDIALOG

View file

@ -184,7 +184,7 @@
<property name="bottomMargin">
<number>24</number>
</property>
<item row="1" column="0">
<item row="2" column="0">
<layout class="QGridLayout" name="profilGLayout">
<item row="14" column="2">
<widget class="RSComboBox" name="keylength_comboBox">
@ -785,6 +785,16 @@
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="pixmaplabel">
<property name="text">
<string>TextLabel</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
</layout>
</widget>
</item>
@ -826,8 +836,8 @@
<tabstop>importIdentity_PB</tabstop>
</tabstops>
<resources>
<include location="images.qrc"/>
<include location="icons.qrc"/>
<include location="images.qrc"/>
</resources>
<connections/>
</ui>

View file

@ -383,5 +383,6 @@
<file>icons/filetype/dll.svg</file>
<file>icons/filetype/collection.svg</file>
<file>icons/filetype/patch.svg</file>
<file>icons/Tor-logo-2011.png</file>
</qresource>
</RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB