File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
osx/src/main/java/ch/cyberduck/ui/cocoa/controller Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 2121import ch .cyberduck .binding .application .NSMenuItem ;
2222import ch .cyberduck .binding .application .NSOpenPanel ;
2323import ch .cyberduck .binding .application .NSPopUpButton ;
24+ import ch .cyberduck .binding .application .NSWindow ;
2425import ch .cyberduck .binding .application .SheetCallback ;
2526import ch .cyberduck .binding .foundation .NSObject ;
2627import ch .cyberduck .binding .foundation .NSURL ;
28+ import ch .cyberduck .core .BookmarkNameProvider ;
2729import ch .cyberduck .core .CollectionListener ;
2830import ch .cyberduck .core .Host ;
2931import ch .cyberduck .core .Local ;
@@ -85,6 +87,12 @@ public void collectionItemChanged(final Host item) {
8587 //
8688 }
8789
90+ @ Override
91+ public void setWindow (final NSWindow window ) {
92+ this .addObserver (bookmark -> window .setTitle (BookmarkNameProvider .toString (bookmark )));
93+ super .setWindow (window );
94+ }
95+
8896 public void setTransferPopup (final NSPopUpButton button ) {
8997 this .transferPopup = button ;
9098 this .transferPopup .setTarget (this .id ());
You can’t perform that action at this time.
0 commit comments