File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/main/java/org/scijava/launcher Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 10
10
</parent >
11
11
12
12
<artifactId >app-launcher</artifactId >
13
- <version >2.1.3 -SNAPSHOT</version >
13
+ <version >2.2.0 -SNAPSHOT</version >
14
14
15
15
<name >SciJava App Launcher</name >
16
16
<description >Launcher for SciJava applications.</description >
Original file line number Diff line number Diff line change @@ -275,6 +275,10 @@ public static void upgrade() {
275
275
}
276
276
277
277
public static void upgrade (boolean headless ) {
278
+ upgrade (headless , true );
279
+ }
280
+
281
+ public static void upgrade (boolean headless , boolean shutdownAfter ) {
278
282
if (!headless ) Splash .show (false );
279
283
String upgradeComplete = "<html>Java has been updated successfully.<br>" +
280
284
"Please restart " + ClassLauncher .appName () + " to apply the changes." ;
@@ -307,7 +311,7 @@ public static void upgrade(boolean headless) {
307
311
finally {
308
312
if (!headless ) Splash .hide ();
309
313
}
310
- notifyAndShutdown (upgradeComplete , headless );
314
+ if ( shutdownAfter ) notifyAndShutdown (upgradeComplete , headless );
311
315
}
312
316
313
317
public static void upgrade (BiConsumer <String , Double > subscriber )
You can’t perform that action at this time.
0 commit comments