File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
osx/src/main/java/ch/cyberduck/ui/cocoa/controller Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,13 @@ private BookmarkControllerFactory() {
3434 public static BookmarkContainerController create (final AbstractHostCollection collection , final Host host ) {
3535 synchronized (NSApplication .sharedApplication ()) {
3636 if (!open .containsKey (host )) {
37- final BookmarkContainerController c = new ExtendedBookmarkController (host ) {
37+ final BookmarkContainerController c = new ExtendedBookmarkController (host , collection ) {
3838 @ Override
3939 public void invalidate () {
4040 open .remove (host );
4141 super .invalidate ();
4242 }
4343 };
44- c .addObserver (collection ::collectionItemChanged );
4544 open .put (host , c );
4645 }
4746 return open .get (host );
Original file line number Diff line number Diff line change 2525import ch .cyberduck .binding .application .SheetCallback ;
2626import ch .cyberduck .binding .foundation .NSObject ;
2727import ch .cyberduck .binding .foundation .NSURL ;
28+ import ch .cyberduck .core .AbstractHostCollection ;
2829import ch .cyberduck .core .BookmarkNameProvider ;
2930import ch .cyberduck .core .CollectionListener ;
3031import ch .cyberduck .core .Host ;
@@ -55,9 +56,10 @@ public class ExtendedBookmarkController extends BookmarkContainerController impl
5556 @ Outlet
5657 private NSOpenPanel downloadFolderOpenPanel ;
5758
58- public ExtendedBookmarkController (final Host bookmark ) {
59+ public ExtendedBookmarkController (final Host bookmark , final AbstractHostCollection collection ) {
5960 super (bookmark );
6061 this .bookmark = bookmark ;
62+ this .addObserver (collection ::collectionItemChanged );
6163 }
6264
6365 @ Override
You can’t perform that action at this time.
0 commit comments