/** Whether progress text should be hidden or not. */
public final boolean hideProgressText;
- /** Whether the splash screen should retain focus. */
+ /** Whether the splash screen should update non-asynchronously before being shown. */
public final boolean progressSync;
+ /** Whether the splash screen should update non-asynchronously after being shown. */
+ public final boolean progressSyncAfterShown;
+
/** Whether the splash screen should retain focus. */
public final boolean keepOnTop;
", pb=" + progressBar + ", srect=" + status + ", st=" + statusText +
", shadow=" + textShadow + ", err=" + installError + ", nrect=" + patchNotes +
", notes=" + patchNotesUrl + ", stepPercentages=" + stepPercentages +
- ", hideProgressText=" + hideProgressText + ", keepOnTop=" + keepOnTop + ", progressSync=" + progressSync + ", minShow=" + minShowSeconds +
+ ", hideProgressText=" + hideProgressText + ", keepOnTop=" + keepOnTop + ", progressSync=" + progressSync +
+ ", progressSyncAfterShown=" + progressSyncAfterShown + ", minShow=" + minShowSeconds +
", displayAppbase=" + displayAppbase + ", displayVersion=" + displayVersion + "]";
}
this.progressText = config.getColor("ui.progress_text", Color.BLACK);
this.hideProgressText = config.getBoolean("ui.hide_progress_text");
this.progressSync = config.getBoolean("ui.progress_sync");
+ this.progressSyncAfterShown = config.getBoolean("ui.progress_sync_after_shown");
this.keepOnTop = config.getBoolean("ui.keep_on_top");
this.displayAppbase = config.getBoolean("ui.display_appbase");
this.displayVersion = config.getBoolean("ui.display_version");
} catch (Exception e) {
log.warning("Could't read config when invoking GUI action", "Exception", e.getMessage());
}
- if (_ifc != null && _ifc.progressSync) {
+ if (_ifc != null && (_shownContainer?_ifc.progressSyncAfterShown:_ifc.progressSync)) {
try {
EventQueue.invokeAndWait(r);
//r.run();
+ log.warning("INVOKEANDWAIT", "shownContainer", _shownContainer);
} catch (Exception e) {
log.warning("Tried to invokeAndWait but couldn't. Going to invokeLater instead", "Exception", e.getMessage());
EventQueue.invokeLater(r);
}
} else {
EventQueue.invokeLater(r);
+ log.warning("INVOKELATER", "ifc", _ifc, "shownContainer", _shownContainer);
//r.run();
}
protected boolean _launchInSilent;
protected boolean _noUpdate;
protected long _startup;
-
+
protected Set<Resource> _toInstallResources;
protected boolean _readyToInstall;
protected boolean _enableTracking = true;
protected int _reportedProgress = 0;
+ protected boolean _shownContainer;
+
/** Number of minutes to wait after startup before beginning any real heavy lifting. */
protected int _delay;
getdown_txt_title = Jalview
getdown_txt_ui.name = Jalview
getdown_txt_ui.progress_sync = true
+getdown_txt_ui.progress_sync_after_shown = false
getdown_txt_ui.keep_on_top = true
getdown_txt_ui.display_appbase = true
getdown_txt_ui.display_version = true