mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-04-19 13:06:30 +02:00
Correct dialog parentage
This commit is contained in:
parent
46bbc9b82e
commit
1623c0f880
@ -166,7 +166,7 @@ public class InstallWindow implements IUserInterface {
|
||||
public Future<Boolean> showOptions(List<IOptionDetails> opts) {
|
||||
CompletableFuture<Boolean> future = new CompletableFuture<>();
|
||||
EventQueue.invokeLater(() -> {
|
||||
OptionsSelectWindow dialog = new OptionsSelectWindow(opts, future);
|
||||
OptionsSelectWindow dialog = new OptionsSelectWindow(opts, future, frmPackwizlauncher);
|
||||
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
|
||||
dialog.setVisible(true);
|
||||
});
|
||||
|
@ -25,12 +25,13 @@ public class OptionsSelectWindow extends JDialog implements ActionListener {
|
||||
/**
|
||||
* Create the dialog.
|
||||
*/
|
||||
OptionsSelectWindow(List<IOptionDetails> optList, CompletableFuture<Boolean> future) {
|
||||
OptionsSelectWindow(List<IOptionDetails> optList, CompletableFuture<Boolean> future, JFrame parentWindow) {
|
||||
super(parentWindow, "Select optional mods...", true);
|
||||
|
||||
tableModel = new OptionTableModel(optList);
|
||||
this.future = future;
|
||||
|
||||
setModal(true);
|
||||
setTitle("Select optional mods...");
|
||||
setLocationRelativeTo(parentWindow);
|
||||
setBounds(100, 100, 450, 300);
|
||||
getContentPane().setLayout(new BorderLayout());
|
||||
JPanel contentPanel = new JPanel();
|
||||
|
Loading…
x
Reference in New Issue
Block a user