mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-07-02 21:11:03 +12:00
Check for shell initialization in terminal error handler
This commit is contained in:
parent
53813f0cd1
commit
c93efb6ae0
|
@ -6,6 +6,7 @@ import io.xpipe.app.core.mode.OperationMode;
|
|||
import io.xpipe.app.update.XPipeDistributionType;
|
||||
import io.xpipe.app.util.Hyperlinks;
|
||||
import io.xpipe.app.util.PlatformState;
|
||||
import io.xpipe.core.impl.LocalStore;
|
||||
import javafx.application.Platform;
|
||||
import javafx.scene.control.Alert;
|
||||
import javafx.scene.control.ButtonBar;
|
||||
|
@ -83,6 +84,11 @@ public class TerminalErrorHandler implements ErrorHandler {
|
|||
}
|
||||
|
||||
private static void handleProbableUpdate() {
|
||||
// If a terminal error occurred before local shell initialization, we can't make use of any functionality to update
|
||||
if (!LocalStore.isLocalShellInitialized()) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
var rel = XPipeDistributionType.get().getUpdateHandler().refreshUpdateCheck();
|
||||
if (rel != null && rel.isUpdate()) {
|
||||
|
|
Loading…
Reference in a new issue