Show invitation lifetime and correlate desktop join results by group
This commit is contained in:
1 parent
d369ff968d
commit
fb21f9c1af
2 files changed
+9
-1
No files matched your search
@@ -41,6 +41,10 @@ JoinDialog::JoinDialog(UtunNode* node, DbManager* db, QWidget* parent,
|
||||
"QLineEdit { border: 1px solid palette(mid); border-radius: 6px;"
|
||||
" padding: 8px 12px; font-size: 13px; background: palette(base); }");
|
||||
layout->addWidget(m_linkEdit);
|
||||
auto* expiry = new QLabel(QStringLiteral("Приглашение действует 10 минут с момента создания.\n"
|
||||
"Если срок истёк, попросите отправителя создать новую ссылку."), this);
|
||||
expiry->setWordWrap(true);
|
||||
layout->addWidget(expiry);
|
||||
|
||||
m_statusLabel = new QLabel(this);
|
||||
m_statusLabel->setWordWrap(true);
|
||||
@@ -199,7 +203,7 @@ void JoinDialog::onConnectClicked() {
|
||||
}
|
||||
|
||||
void JoinDialog::onConnectResult(uint64_t nodeId, uint64_t channelId, int result) {
|
||||
if (!m_connecting || nodeId != m_pendingNodeId) return;
|
||||
if (!m_connecting || nodeId != m_pendingNodeId || channelId != m_pendingChannelId) return;
|
||||
|
||||
if (result == 0) {
|
||||
setStatus("Connected!");
|
||||
|
||||
Reference in new issue
Block a user