feat: Focused/Other pivot for Inbox

- MailListView: new m_pivotCombo (Principal/Otros) visible only for Inbox folders
- MailListView::setFolderType(folderType) called from MainMainWindow::onFolderSelected()
- Folder::type() returns 'inbox', 'sent', 'drafts', 'trash', 'custom'
- onPivotChanged() placeholder for future AI-based filtering (Focused vs Other)
- UI hidden for non-Inbox folders
This commit is contained in:
2026-08-26 03:33:10 +02:00
parent 43b828fe87
commit 3a3a7b0ff8
10 changed files with 8421 additions and 8355 deletions
+2
View File
@@ -388,6 +388,8 @@ void MainMainWindow::onFolderSelected(const QModelIndex &index)
Account* account = m_accountService->findAccountById(folder.accountId());
if (account) {
m_mailService->fetchMails(QString::number(account->id()), QString::number(m_currentFolderId));
// Tell MailListView the folder type for Focused/Other pivot
m_mailListView->setFolderType(folder.type().toLower()); // "inbox", "sent", etc.
delete account;
}
}