Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianKirmaier committed Oct 28, 2024
2 parents 0cfb461 + 91c85b7 commit a6a8a47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
<maven.javadoc.skip>true</maven.javadoc.skip>
<gluonfx.plugin.version>1.0.22</gluonfx.plugin.version>
<javafx.plugin.version>0.0.8</javafx.plugin.version>
<mainClassName>com.dlsc.jfxcentral2.app.JFXCentral2MobileApp</mainClassName>
<mainClassName>com.dlsc.jfxcentral2.app.JFXCentral2App</mainClassName>
<mainClassName.jpro>com.dlsc.jfxcentral2.app.JFXCentral2App</mainClassName.jpro>
<mainClassName.mobile>com.dlsc.jfxcentral2.app.JFXCentral2MobileApp</mainClassName.mobile>
<app.description>JFXCentral for anything JavaFX</app.description>
<package.type/>
<mac.app.store/>
Expand Down Expand Up @@ -455,7 +457,7 @@
<list>browser</list>
<list>video</list>
</attachList>
<mainClass>${mainClassName}</mainClass>
<mainClass>${mainClassName.mobile}</mainClass>
<releaseConfiguration>
<vendor>Gluon</vendor>
<description>${app.description}</description>
Expand Down Expand Up @@ -486,7 +488,7 @@
<artifactId>jpro-maven-plugin</artifactId>
<version>${jpro.version}</version>
<configuration>
<mainClassName>${mainClassName}</mainClassName>
<mainClassName>${mainClassName.jpro}</mainClassName>
<releaseName>jfxcentral</releaseName>
<localJVMArgs>-Ddevelop=false</localJVMArgs>
<port>8088</port>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static List<QuickLink> generateQuickLinks(Size size) {
private static List<QuickLink> createQuickLinks(int count) {
List<QuickLink> list = new ArrayList<>();
List<ModelObject> dataList = createShuffledSublist(count);
for (int i = 0; i < count; i++) {
for (int i = 0; i < dataList.size(); i++) {
ModelObject mo = dataList.get(i);
list.add(new NormalQuickLink(getCategoryName(mo), mo.getName(), IkonUtil.getModelIkon(mo), PageUtil.getLink(mo)));
}
Expand Down Expand Up @@ -174,7 +174,7 @@ private static List<ModelObject> createShuffledSublist(int size) {

Collections.shuffle(allModelObjects);

return allModelObjects.subList(0, size);
return allModelObjects.subList(0, Math.min(allModelObjects.size(), size));
}

public static List<QuickLink> generateWebsiteChangesQuickLinks(ObjectProperty<Size> sizeProperty) {
Expand Down

0 comments on commit a6a8a47

Please sign in to comment.