xpipe/app/src/main/java/io/xpipe/app/core/check/AppPtbCheck.java
2024-04-13 16:23:09 +00:00

26 lines
997 B
Java

package io.xpipe.app.core.check;
import io.xpipe.app.core.AppProperties;
import io.xpipe.app.core.AppWindowHelper;
import javafx.scene.control.Alert;
public class AppPtbCheck {
public static void check() {
if (!AppProperties.get().isStaging()) {
return;
}
AppWindowHelper.showBlockingAlert(alert -> {
alert.setAlertType(Alert.AlertType.INFORMATION);
alert.setHeaderText("Notice for the public test build");
alert.getDialogPane()
.setContent(AppWindowHelper.alertContentText("You are running a PTB build of XPipe."
+ " This version is unstable and might contain bugs."
+ " You should not use it as a daily driver."
+ " It will also not receive regular updates after its testing period."
+ " You will have to install and launch the normal XPipe release for that."));
});
}
}