From: Christos Stathis Date: Tue, 10 Jan 2012 12:54:16 +0000 (+0200) Subject: Refresh trash after moving to trash X-Git-Tag: v0.1~45 X-Git-Url: https://code.grnet.gr/git/pithos-web-client/commitdiff_plain/9b055abaca2e3fb848a98484bdf4ed642e3320aa?hp=01bed3d4cd1e9b79bc59fb044ec0df094add5f6d Refresh trash after moving to trash --- diff --git a/src/gr/grnet/pithos/web/client/commands/ToTrashCommand.java b/src/gr/grnet/pithos/web/client/commands/ToTrashCommand.java index 614b8ed..b0232d9 100644 --- a/src/gr/grnet/pithos/web/client/commands/ToTrashCommand.java +++ b/src/gr/grnet/pithos/web/client/commands/ToTrashCommand.java @@ -81,7 +81,13 @@ public class ToTrashCommand implements Command{ @SuppressWarnings("unchecked") @Override public void execute() { - app.updateFolder(((List) resource).get(0).getParent(), true, null); + app.updateFolder(((List) resource).get(0).getParent(), true, new Command() { + + @Override + public void execute() { + app.updateTrash(false, null); + } + }); } }); } @@ -90,7 +96,13 @@ public class ToTrashCommand implements Command{ trashFolder(toBeTrashed, new Command() { @Override public void execute() { - app.updateFolder(toBeTrashed.getParent(), true, null); + app.updateFolder(toBeTrashed.getParent(), true, new Command() { + + @Override + public void execute() { + app.updateTrash(false, null); + } + }); } });