Skip to content

Commit

Permalink
Workaround for #5599.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Dec 30, 2010
1 parent 2eb82ff commit 8a51742
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions source/ch/cyberduck/ui/cocoa/BrowserController.java
Expand Up @@ -4157,9 +4157,9 @@ else if(identifier.equals(TOOLBAR_QUICKLOOK)) {
private Map<String, NSToolbarItem> toolbarItems
= new HashMap<String, NSToolbarItem>();

public NSToolbarItem toolbar_itemForItemIdentifier_willBeInsertedIntoToolbar(NSToolbar toolbar, final String itemIdentifier, boolean flag) {
public NSToolbarItem toolbar_itemForItemIdentifier_willBeInsertedIntoToolbar(NSToolbar toolbar, final String itemIdentifier, boolean inserted) {
if(log.isDebugEnabled()) {
log.debug("toolbar_itemForItemIdentifier_willBeInsertedIntoToolbar:" + toolbar);
log.debug("toolbar_itemForItemIdentifier_willBeInsertedIntoToolbar:" + itemIdentifier);
}
if(!toolbarItems.containsKey(itemIdentifier)) {
toolbarItems.put(itemIdentifier, NSToolbarItem.itemWithIdentifier(itemIdentifier));
Expand Down Expand Up @@ -4205,7 +4205,14 @@ else if(itemIdentifier.equals(TOOLBAR_TRANSFERS)) {
else if(itemIdentifier.equals(TOOLBAR_TOOLS)) {
item.setLabel(Locale.localizedString("Action"));
item.setPaletteLabel(Locale.localizedString("Action"));
item.setView(this.actionPopupButton);
if(inserted) {
item.setView(this.actionPopupButton);
item.setImage(null);
}
else {
item.setView(null);
item.setImage(IconCache.iconNamed("gear.tiff"));
}
// Add a menu representation for text mode of toolbar
NSMenuItem toolMenu = NSMenuItem.itemWithTitle(Locale.localizedString("Action"), null, "");
NSMenu toolSubmenu = NSMenu.menu();
Expand Down

0 comments on commit 8a51742

Please sign in to comment.