Skip to content

Commit

Permalink
Fix #11467.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Dec 27, 2020
1 parent a914e53 commit 471d0ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Expand Up @@ -15,7 +15,6 @@
* GNU General Public License for more details.
*/

import ch.cyberduck.binding.application.NSImage;
import ch.cyberduck.binding.application.NSTabView;
import ch.cyberduck.binding.application.NSTabViewItem;
import ch.cyberduck.binding.application.NSToolbar;
Expand All @@ -30,7 +29,6 @@
import ch.cyberduck.binding.foundation.NSObject;
import ch.cyberduck.core.preferences.Preferences;
import ch.cyberduck.core.preferences.PreferencesFactory;
import ch.cyberduck.core.resources.IconCacheFactory;

import org.apache.log4j.Logger;
import org.rococoa.Foundation;
Expand Down Expand Up @@ -196,7 +194,6 @@ public NSToolbarItem toolbar_itemForItemIdentifier_willBeInsertedIntoToolbar(fin
toolbarItem.setLabel(tab.label());
toolbarItem.setPaletteLabel(tab.label());
toolbarItem.setToolTip(tab.label());
toolbarItem.setImage(IconCacheFactory.<NSImage>get().iconNamed(String.format("%s.tiff", itemIdentifier), 32));
toolbarItem.setTarget(this.id());
toolbarItem.setAction(Foundation.selector("toolbarItemSelected:"));
return toolbarItem;
Expand Down
Expand Up @@ -157,9 +157,7 @@ public void setPanelCryptomator(final NSView v) {
@Override
public NSToolbarItem toolbar_itemForItemIdentifier_willBeInsertedIntoToolbar(final NSToolbar toolbar, final String itemIdentifier, final boolean flag) {
final NSToolbarItem item = super.toolbar_itemForItemIdentifier_willBeInsertedIntoToolbar(toolbar, itemIdentifier, flag);
if(itemIdentifier.equals("sftp")) {
item.setImage(IconCacheFactory.<NSImage>get().iconNamed("ftp"));
}
item.setImage(IconCacheFactory.<NSImage>get().iconNamed(String.format("preferences-%s.pdf", itemIdentifier)));
return item;
}

Expand Down

0 comments on commit 471d0ca

Please sign in to comment.