feat: Show the TLS Enabled label no matter the selected mode

This commit is contained in:
sithlord48 2024-12-30 08:41:44 -05:00 committed by Nick Bolton
parent 4f9494245f
commit 86ee88d17d
2 changed files with 11 additions and 14 deletions

View file

@ -1011,7 +1011,7 @@ void MainWindow::updateLocalFingerprint()
qFatal() << "failed to check if fingerprint exists";
}
if (m_AppConfig.tlsEnabled() && fingerprintExists && ui->rbModeServer->isChecked()) {
if (m_AppConfig.tlsEnabled() && fingerprintExists) {
ui->lblMyFingerprint->setVisible(true);
} else {
ui->lblMyFingerprint->setVisible(false);

View file

@ -89,6 +89,16 @@
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lblMyFingerprint">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;TLS enabled (&lt;a href=&quot;#&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#4285f4;&quot;&gt;fingerprint&lt;/span&gt;&lt;/a&gt;)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::TextFormat::RichText</enum>
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="m_pWidgetModes" native="true">
<property name="sizePolicy">
@ -245,19 +255,6 @@
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lblMyFingerprint">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;TLS enabled (&lt;a href=&quot;#&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#4285f4;&quot;&gt;fingerprint&lt;/span&gt;&lt;/a&gt;)&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::TextFormat::RichText</enum>
</property>
<property name="indent">
<number>20</number>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">