Fix GitHub new release check

pull/148/head v1.33.1
James Ball 2023-01-06 19:30:31 +00:00 zatwierdzone przez James H Ball
rodzic 27215863ef
commit 5d789ffd28
4 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

@ -6,7 +6,7 @@
<groupId>sh.ball</groupId>
<artifactId>osci-render</artifactId>
<version>1.33.0</version>
<version>1.33.1</version>
<name>osci-render</name>

Wyświetl plik

@ -93,8 +93,7 @@ public class ProjectSelectController implements Initializable {
new Thread(() -> {
String latestRelease = gitHubReleaseDetector.getLatestRelease();
Platform.runLater(() -> {
String currentVersion = versionLabel.getText().replaceAll("^v", "");
if (!latestRelease.equals(currentVersion)) {
if (!latestRelease.equals(versionLabel.getText())) {
latestReleaseHyperlink.setText(latestRelease + " is the latest version on GitHub!");
projectVBox.getChildren().add(projectVBox.getChildren().size() - 1, latestReleaseHyperlink);
}

Wyświetl plik

@ -1,3 +1,7 @@
- 1.33.1
- Fix check for a new version of osci-render in project select screen
- 1.33.0
- Overhaul how animations work in the interface for more precise and intuitive control over the animation speed
- When the animation type changes, the range of the slider changes and changing the slider changes the frequency of the animation

Wyświetl plik

@ -48,7 +48,7 @@
<CheckBox fx:id="startMutedCheckBox" mnemonicParsing="false" text="Start muted" />
<HBox alignment="CENTER" spacing="20.0">
<children>
<Label fx:id="versionLabel" minWidth="42.0" prefHeight="18.0" prefWidth="42.0" text="v1.33.0" />
<Label fx:id="versionLabel" minWidth="42.0" prefHeight="18.0" prefWidth="42.0" text="v1.33.1" />
<Label prefHeight="54.0" prefWidth="379.0" text="Email me at james@ball.sh or create an issue on GitHub for feature suggestions, issues, or opportunites I might be interested in!" textAlignment="CENTER" wrapText="true" />
<Button fx:id="logButton" minWidth="102.0" mnemonicParsing="false" prefWidth="102.0" text="Open log folder" />
</children>