| 1007 | } |
| 1008 | |
| 1009 | void MainWindow::coreConnectionStateChanged(CoreConnectionState state) |
| 1010 | { |
| 1011 | qDebug() << "core connection state changed: " << static_cast<int>(state); |
| 1012 | |
| 1013 | updateStatus(); |
| 1014 | |
| 1015 | // always assume connection is not secure when connection changes |
| 1016 | // to anything except connected. the only way the padlock shows is |
| 1017 | // when the correct TLS version string is detected. |
| 1018 | if (state != CoreConnectionState::Connected) { |
| 1019 | secureSocket(false); |
| 1020 | } else if (isVisible()) { |
| 1021 | showFirstConnectedMessage(); |
| 1022 | } |
| 1023 | } |
| 1024 | |
| 1025 | void MainWindow::updateLocalFingerprint() |
| 1026 | { |
nothing calls this directly
no test coverage detected