Fix PTB update alert showing too early

This commit is contained in:
crschnick
2025-03-09 10:52:14 +00:00
parent 2643a47116
commit 5f0732f5ae

View File

@@ -4,6 +4,7 @@ import io.xpipe.app.comp.base.ModalButton;
import io.xpipe.app.core.AppCache;
import io.xpipe.app.core.AppDistributionType;
import io.xpipe.app.core.AppProperties;
import io.xpipe.app.core.mode.OperationMode;
import io.xpipe.app.issue.ErrorEvent;
import io.xpipe.app.issue.TrackEvent;
import io.xpipe.app.prefs.AppPrefs;
@@ -182,7 +183,7 @@ public abstract class UpdateHandler {
prepareUpdateImpl();
// Show available update in PTB more aggressively
if (AppProperties.get().isStaging() && preparedUpdate.getValue() != null) {
if (AppProperties.get().isStaging() && preparedUpdate.getValue() != null && !OperationMode.isInStartup()) {
UpdateAvailableDialog.showIfNeeded();
}
}