updater process stays running if closed with cross icon fix #6813
only:uaefi
This commit is contained in:
parent
0481962837
commit
f94c0d061c
|
@ -35,8 +35,9 @@ public class FrameHelper {
|
||||||
return title + " " + bundleName;
|
return title + " " + bundleName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// note hard-coded 'EXIT_ON_CLOSE' - that's the best choice at the moment
|
||||||
public static FrameHelper createFrame(String title) {
|
public static FrameHelper createFrame(String title) {
|
||||||
FrameHelper frame = new FrameHelper();
|
FrameHelper frame = new FrameHelper(JDialog.EXIT_ON_CLOSE);
|
||||||
frame.frame.setTitle(appendBundleName(title));
|
frame.frame.setTitle(appendBundleName(title));
|
||||||
return frame;
|
return frame;
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,7 +86,7 @@ public class StartupFrame {
|
||||||
public void windowClosed(WindowEvent ev) {
|
public void windowClosed(WindowEvent ev) {
|
||||||
if (!isProceeding) {
|
if (!isProceeding) {
|
||||||
getConfig().save();
|
getConfig().save();
|
||||||
IoUtils.exit("windowClosed", 0);
|
log.info("Configuration saved.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue