hyperdefined / CustomLauncherRewrite

Wrong thread for swing method invocation JAVA-W1062
Bug risk
Major
a month agoa year old
show should be called from the event dispatch thread
206
207        String notificationText = invasion.getDistrict() + " - " + invasion.getCogType().replace("\u0003", "");
208        Notify notify = Notify.Companion.create().title(messageTitle).text(notificationText).theme(Theme.Companion.getDefaultDark()).position(Position.BOTTOM_RIGHT).hideAfter(5000).image(CustomLauncherRewrite.icon);
209        notify.show();210    }
211
212    /**
196
197        String notificationText = zonesToStreets.get(fieldOffice.getArea()) + " - " + fieldOffice.getDifficulty() + " star(s)";
198        Notify notify = Notify.Companion.create().title(messageTitle).text(notificationText).theme(Theme.Companion.getDefaultDark()).position(Position.BOTTOM_RIGHT).hideAfter(5000).image(CustomLauncherRewrite.icon);
199        notify.show();200    }
201
202    /**
setVisible should be called from the event dispatch thread
113
114        // run the TTR updater
115        TTRUpdater ttrUpdater = new TTRUpdater();
116        ttrUpdater.setVisible(true);117        ttrUpdater.checkUpdates(manifest);
118
119        logger.info("Launching game from " + installPath.getAbsolutePath());
setVisible should be called from the event dispatch thread
214
215                logger.info("Downloading " + PATCHES_URL_DL + downloadName);
216                updateStatus.setText("Downloading " + downloadName);
217                progressBar.setVisible(true);218                progressBar.setValue(progressBar.getValue() + 1);
219
220                // build the download URL