Add own files button to the channel list footer
This commit is contained in:
1 parent
7f3247bfcc
commit
2e4ed0347b
3 files changed
+32
No files matched your search
@@ -610,6 +610,17 @@ void MainWindow::setupConnects() {
|
||||
m_messageList, &MessageList::reloadLocalNicks);
|
||||
connect(m_accountList, &AccountList::filesRequested, this, &MainWindow::showMemberFiles);
|
||||
connect(m_channelList, &ChannelList::filesRequested, this, [this](const QString& channel) { showMemberFiles(channel); });
|
||||
connect(m_channelList, &ChannelList::ownFilesRequested, this, [this](const QString& channel) {
|
||||
quint64 owner = m_db ? m_db->myNodeId() : 0;
|
||||
if (!channel.toULongLong() || !owner) {
|
||||
DEBUG_WARN(DEBUG_CATEGORY_MEDIA, "file browser: own files unavailable channel=%s owner=%llu",
|
||||
qPrintable(channel), (unsigned long long)owner);
|
||||
return;
|
||||
}
|
||||
DEBUG_INFO(DEBUG_CATEGORY_MEDIA, "file browser: opening own files channel=%s owner=%llu",
|
||||
qPrintable(channel), (unsigned long long)owner);
|
||||
showMemberFiles(channel, owner);
|
||||
});
|
||||
connect(m_accountList, &AccountList::callRequested, this, &MainWindow::onCallRequested);
|
||||
connect(m_messageList, &MessageList::callRequested, this, &MainWindow::onCallRequested);
|
||||
connect(m_accountList, &AccountList::pmRequested, this, &MainWindow::onPmRequested);
|
||||
|
||||
Reference in new issue
Block a user