Skip to content

Commit

Permalink
console/plugins/SettingsWindow: Fix for popup dialog position and usi…
Browse files Browse the repository at this point in the history
…ng the new Popup annotation fields.
  • Loading branch information
paulosousadias committed Jul 27, 2024
1 parent 75dc4bf commit 77e7971
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/java/pt/lsts/neptus/console/plugins/SettingsWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
* @author Margarida Faria
* @author pdias
*/
@Popup(icon = "images/menus/settings.png", name = "Console Settings", pos = POSITION.CENTER, accelerator = KeyEvent.VK_F3, height = 400, width = 600)
@Popup(icon = "images/menus/settings.png", name = "Console Settings", pos = POSITION.CENTER, accelerator = KeyEvent.VK_F3,
height = 400, width = 600, modality = ModalityType.DOCUMENT_MODAL, alwaysResetPopupPosition = true)
public class SettingsWindow extends ConsolePanel implements SubPanelChangeListener {

private static final long serialVersionUID = 1L;
Expand Down Expand Up @@ -179,8 +180,6 @@ public void initSubPanel() {
settingsPanel.reset();

getConsole().addSubPanelListener(this);

dialog.setModalityType(ModalityType.DOCUMENT_MODAL);
}

@Override
Expand Down

0 comments on commit 77e7971

Please sign in to comment.