diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-11-07 17:13:27 +0100 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-11-07 17:13:27 +0100 |
commit | f3f3b2dfc050a825bef3a47a9b4fd7847bda7c1f (patch) | |
tree | 8015679bd14306972ee9182388d4e0a4b5440d5b /pdf-over-gui/src | |
parent | 00608b98f845630ce45c6102188df992a381d14a (diff) | |
download | pdf-over-f3f3b2dfc050a825bef3a47a9b4fd7847bda7c1f.tar.gz pdf-over-f3f3b2dfc050a825bef3a47a9b4fd7847bda7c1f.tar.bz2 pdf-over-f3f3b2dfc050a825bef3a47a9b4fd7847bda7c1f.zip |
check for config composite disposal in update check callback
cf. #132
Diffstat (limited to 'pdf-over-gui/src')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AboutComposite.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AboutComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AboutComposite.java index 09c2fdbc..14f7a015 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AboutComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AboutComposite.java @@ -57,7 +57,7 @@ public class AboutComposite extends ConfigurationCompositeBase { this.lnkUpdateCheckStatus = new Link(this, SWT.NONE); SWTUtils.anchor(lnkUpdateCheckStatus).bottom(100, -5).left(0,5); SWTUtils.setFontHeight(lnkUpdateCheckStatus, Constants.TEXT_SIZE_BUTTON); - UpdateCheckManager.registerStatusCallback((s) -> { latestUpdateStatus = s; getDisplay().asyncExec(() -> { RefreshUpdateStatusText(); }); }); + UpdateCheckManager.registerStatusCallback((s) -> { if (isDisposed()) return; latestUpdateStatus = s; getDisplay().asyncExec(() -> { RefreshUpdateStatusText(); }); }); SWTUtils.addSelectionListener(lnkUpdateCheckStatus, (e) -> { if (latestUpdateStatus == UpdateCheckManager.Status.OUTDATED) Program.launch(Constants.UPDATE_URL); |