hide/disable unnecessary Tor widgets in auto-tor mode and show outgoing I2P widgets

This commit is contained in:
csoler 2022-12-24 10:29:08 +01:00
parent 992d5c30d3
commit c0024e3487
2 changed files with 16 additions and 7 deletions

View File

@ -102,11 +102,20 @@ ServerPage::ServerPage(QWidget * parent, Qt::WindowFlags flags)
{
// Here we use absolute numbers instead of consts defined above, because the consts correspond to the tab number *after* this tab removal.
ui.hiddenpage_proxyAddress_i2p->hide() ;
ui.hiddenpage_proxyLabel_i2p->hide() ;
ui.hiddenpage_proxyPort_i2p->hide() ;
ui.label_i2p_outgoing->hide() ;
ui.iconlabel_i2p_outgoing->hide() ;
ui.hiddenpage_proxyAddress_tor->setEnabled(false) ;
ui.hiddenpage_proxyPort_tor->setEnabled(false) ;
ui.hiddenpage_localAddress->setEnabled(false) ;
ui.hiddenpage_localPort->setEnabled(false) ;
ui.testIncoming_PB->hide() ;
ui.l_incomingTestResult->hide() ;
ui.iconlabel_service_incoming->hide() ;
// ui.hiddenpage_proxyAddress_i2p->hide() ;
// ui.hiddenpage_proxyLabel_i2p->hide() ;
// ui.hiddenpage_proxyPort_i2p->hide() ;
// ui.label_i2p_outgoing->hide() ;
// ui.iconlabel_i2p_outgoing->hide() ;
ui.info_SocksProxy->hide() ;
ui.hiddenpage_configuration->hide() ;
ui.l_hiddenpage_configuration->hide() ;

View File

@ -26,7 +26,7 @@
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>0</number>
<number>1</number>
</property>
<widget class="QWidget" name="tabNetConf">
<attribute name="title">
@ -759,7 +759,7 @@ behind a firewall or a VPN.</string>
</sizepolicy>
</property>
<property name="currentIndex">
<number>0</number>
<number>1</number>
</property>
<widget class="QWidget" name="hiddenServiceTabManual">
<attribute name="title">