File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
osx/src/main/java/ch/cyberduck/ui/cocoa/controller Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1818import ch .cyberduck .binding .application .NSApplication ;
1919import ch .cyberduck .core .AbstractHostCollection ;
2020import ch .cyberduck .core .Host ;
21+ import ch .cyberduck .core .preferences .Preferences ;
22+ import ch .cyberduck .core .preferences .PreferencesFactory ;
2123
2224import java .util .HashMap ;
2325import java .util .Map ;
2426
2527public final class BookmarkControllerFactory {
2628
29+ private static final Preferences preferences
30+ = PreferencesFactory .get ();
31+
2732 private static final Map <Host , BookmarkContainerController > open
2833 = new HashMap <>();
2934
@@ -33,7 +38,7 @@ private BookmarkControllerFactory() {
3338
3439 public static BookmarkContainerController create (final AbstractHostCollection collection , final Host host ) {
3540 synchronized (NSApplication .sharedApplication ()) {
36- if (!open .containsKey (host )) {
41+ if (!open .containsKey (host ) || preferences . getBoolean ( "bookmark.window.popover" ) ) {
3742 final BookmarkContainerController c = new ExtendedBookmarkController (host , collection ) {
3843 @ Override
3944 public void invalidate () {
You can’t perform that action at this time.
0 commit comments