no updated dialog for kiosk, nor for touch mode until we can fit it in
authorNiki Roo <niki@nikiroo.be>
Thu, 7 May 2020 09:41:56 +0000 (11:41 +0200)
committerNiki Roo <niki@nikiroo.be>
Thu, 7 May 2020 09:41:56 +0000 (11:41 +0200)
src/be/nikiroo/fanfix_swing/Main.java

index ea61240eb34db2b1014240007f1c1e07ab0b963d..4ec6c2bd0c6aefdb4beb6d812a4bc34a4968cc8c 100644 (file)
@@ -65,6 +65,12 @@ public class Main extends be.nikiroo.fanfix.Main {
 
        @Override
        protected VersionCheck checkUpdates() {
+               // Kiosk mode should not want to know that
+               // Touch mode: TODO get an adapted update message (setInfo, setError?)
+               if (kiosk || touch) {
+                       return null;
+               }
+
                // We use a SwingWorker instead of deferring to checkUpdates("...")
                // So we can check in BG
                new SwingWorker<VersionCheck, Void>() {