mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-11-08 15:04:06 +00:00
Fix PTB update alert showing too early
This commit is contained in:
1 parent
2643a47116
commit
5f0732f5ae
1 file changed
+2
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user