Accept file drops across the channel footer

This commit is contained in:
evgeny committed 2026-10-09 23:30:33 +02:00
1 parent c721de6e80
commit 1ed7d280ab
3 files changed
+63

No files matched your search

+5
View File
@@ -621,6 +621,11 @@ void MainWindow::setupConnects() {
qPrintable(channel), (unsigned long long)owner);
showMemberFiles(channel, owner);
});
connect(m_channelList, &ChannelList::ownFilesDropped, this, [this](const QString& channel, const QStringList& paths) {
if (!m_fileBrowser) m_fileBrowser = new MemberFileBrowser(m_db, this);
m_fileBrowser->show(); m_fileBrowser->raise(); m_fileBrowser->activateWindow();
m_fileBrowser->uploadOwnFiles(channel, paths);
});
connect(m_accountList, &AccountList::callRequested, this, &MainWindow::onCallRequested);
connect(m_messageList, &MessageList::callRequested, this, &MainWindow::onCallRequested);
connect(m_accountList, &AccountList::pmRequested, this, &MainWindow::onPmRequested);