Skip to content

Commit

Permalink
Drop support for custom file icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Nov 26, 2024
1 parent 7127144 commit 654c60a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ public boolean update(final TransferProgress status) {
@Override
public boolean remove() {
progress.unpublish();
WorkspaceIconService.update(file, null);
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public final class DownloadFilterOptions {
public boolean permissions;
public boolean timestamp;
public boolean wherefrom;
public boolean icon;
public boolean checksum;
/**
* Add quarantine flag to downloaded file
Expand All @@ -45,7 +44,6 @@ public DownloadFilterOptions(final Host bookmark) {
permissions = preferences.getBoolean("queue.download.permissions.change");
timestamp = preferences.getBoolean("queue.download.timestamp.change");
wherefrom = preferences.getBoolean("queue.download.wherefrom");
icon = preferences.getBoolean("queue.download.icon.update");
checksum = preferences.getBoolean("queue.download.checksum.calculate");
quarantine = preferences.getBoolean("queue.download.quarantine");
open = preferences.getBoolean("queue.download.complete.open");
Expand All @@ -58,7 +56,6 @@ public String toString() {
sb.append(", permissions=").append(permissions);
sb.append(", timestamp=").append(timestamp);
sb.append(", wherefrom=").append(wherefrom);
sb.append(", icon=").append(icon);
sb.append(", checksum=").append(checksum);
sb.append(", quarantine=").append(quarantine);
sb.append(", open=").append(open);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public class RenameExistingFilterTest {
public void testPrepare() throws Exception {
final Host host = new Host(new TestProtocol());
final DownloadFilterOptions options = new DownloadFilterOptions(host);
options.icon = false;
RenameExistingFilter f = new RenameExistingFilter(new DisabledDownloadSymlinkResolver(), new NullTransferSession(host),
options);
final String name = new AsciiRandomStringService().random();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
import ch.cyberduck.core.local.FileDescriptor;
import ch.cyberduck.core.local.FileDescriptorFactory;
import ch.cyberduck.core.local.LocalTouchFactory;
import ch.cyberduck.core.local.WorkspaceIconService;
import ch.cyberduck.core.pasteboard.PathPasteboard;
import ch.cyberduck.core.pasteboard.PathPasteboardFactory;
import ch.cyberduck.core.preferences.Preferences;
Expand Down Expand Up @@ -630,7 +629,6 @@ public NSArray namesOfPromisedFilesDroppedAtDestination(final NSURL url) {
final Local destination = LocalFactory.get(url.path());
final DownloadFilterOptions options = new DownloadFilterOptions(controller.getSession().getHost());
if(destination.isChild(new TemporarySupportDirectoryFinder().find())) {
options.icon = false;
options.segments = false;
}
final PathPasteboard pasteboard = controller.getPasteboard();
Expand All @@ -646,9 +644,6 @@ public NSArray namesOfPromisedFilesDroppedAtDestination(final NSURL url) {
if(!file.exists()) {
try {
LocalTouchFactory.get().touch(file);
if(options.icon) {
WorkspaceIconService.update(file, IconCacheFactory.<NSImage>get().iconNamed(String.format("download%d.icns", 0)));
}
}
catch(AccessDeniedException e) {
log.warn("Failure creating file {} {}", file, e.getMessage());
Expand Down

0 comments on commit 654c60a

Please sign in to comment.