mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Make single non-local drops work with multiple accounts
This commit is contained in:
@@ -32,17 +32,21 @@ class FolderTreeMenu {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
return menu
|
||||
}
|
||||
|
||||
static func select(_ folder: Folder, in popupButton: NSPopUpButton) {
|
||||
static func select(account: Account, folder: Folder?, in popupButton: NSPopUpButton) {
|
||||
for menuItem in popupButton.itemArray {
|
||||
if let oneFolder = menuItem.representedObject as? Folder, oneFolder == folder {
|
||||
if let oneAccount = menuItem.representedObject as? Account, oneAccount == account && folder == nil {
|
||||
popupButton.select(menuItem)
|
||||
return
|
||||
}
|
||||
if let oneFolder = menuItem.representedObject as? Folder, oneFolder == folder {
|
||||
if oneFolder.account == account {
|
||||
popupButton.select(menuItem)
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user