Don't select wrong Inbox
Fixes the inboxes branch inbox being selected when the account branch inbox was clicked.
This commit is contained in:
parent
b6e790e3db
commit
2590e0090e
1 changed files with 5 additions and 3 deletions
|
|
@ -669,9 +669,11 @@ public class Application.MainWindow :
|
|||
// selection changed callback. That will check to
|
||||
// ensure that we're not setting it again.
|
||||
if (to_select != null) {
|
||||
// Prefer the inboxes branch if it exists
|
||||
if (to_select.special_folder_type != INBOX ||
|
||||
!this.folder_list.select_inbox(to_select.account)) {
|
||||
// Prefer the inboxes branch if it is a thing, but
|
||||
// only for non-interactive calls
|
||||
if (is_interactive ||
|
||||
(to_select.special_folder_type != INBOX ||
|
||||
!this.folder_list.select_inbox(to_select.account))) {
|
||||
this.folder_list.select_folder(to_select);
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue