mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 13:30:53 +00:00
Fixed New version dialog error when no main window available
This commit is contained in:
@@ -2523,7 +2523,7 @@ public class Main {
|
||||
|
||||
if (!versions.isEmpty()) {
|
||||
View.execInEventDispatch(() -> {
|
||||
NewVersionDialog newVersionDialog = new NewVersionDialog(mainFrame.getWindow(), versions);
|
||||
NewVersionDialog newVersionDialog = new NewVersionDialog(mainFrame == null ? null :mainFrame.getWindow(), versions);
|
||||
newVersionDialog.setVisible(true);
|
||||
Configuration.lastUpdatesCheckDate.set(Calendar.getInstance());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user