diff options
author | Simon Rettberg | 2018-12-07 16:13:59 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-12-07 16:13:59 +0100 |
commit | b9f993161d7a8472e82f2c747c2361a3ba411b6a (patch) | |
tree | 539d1ffc8524584775e2e72194785f1cbade8626 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java | |
parent | [server] ImageSummary: Fill fileSizeSum and versionCount (diff) | |
download | tutor-module-b9f993161d7a8472e82f2c747c2361a3ba411b6a.tar.gz tutor-module-b9f993161d7a8472e82f2c747c2361a3ba411b6a.tar.xz tutor-module-b9f993161d7a8472e82f2c747c2361a3ba411b6a.zip |
[client] Get rid of Feature checks; RPC version was bumped
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java index c81af1a6..117ca324 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/ImagePublishedWindow.java @@ -42,7 +42,6 @@ import org.openslx.dozmod.thrift.ThriftError; import org.openslx.dozmod.thrift.cache.ImagePublishedCache; import org.openslx.dozmod.thrift.cache.OrganizationCache; import org.openslx.dozmod.thrift.cache.UserCache; -import org.openslx.sat.thrift.version.Feature; import org.openslx.thrifthelper.TConst; import org.openslx.thrifthelper.ThriftManager; import org.openslx.util.QuickTimer; @@ -254,16 +253,14 @@ public class ImagePublishedWindow extends ImagePublishedWindowLayout implements final List<ImageSummaryRead> imagePublishedList = ImagePublishedCache.get(forceRefresh); if (imagePublishedList == null) return; - // 04.2018: Safety check to hide the non-vmware images from the list + // TODO 04.2018: Safety check to hide the non-vmware images from the list // in case they somehow manage to get published. Remove this when we // support publishing images from other hypervisors. - if (Session.hasFeature(Feature.MULTIPLE_HYPERVISORS)) { - for (Iterator<ImageSummaryRead> iter = imagePublishedList.listIterator(); iter - .hasNext();) { - ImageSummaryRead current = iter.next(); - if (current != null && !current.virtId.equals(TConst.VIRT_VMWARE)) { - iter.remove(); - } + for (Iterator<ImageSummaryRead> iter = imagePublishedList.listIterator(); iter + .hasNext();) { + ImageSummaryRead current = iter.next(); + if (current != null && !current.virtId.equals(TConst.VIRT_VMWARE)) { + iter.remove(); } } Gui.asyncExec(new Runnable() { |