Skip to content

Commit

Permalink
Allowed for a popup when in Lite mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrockwell2 committed Jan 9, 2024
1 parent f435793 commit 1422dac
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,9 @@ protected void printErrorMessage(String err) {

try {
doc.insertString(doc.getLength(), err + "\n", redStyle);
if (liteButton.isSelected() || getMainFrame().getSize().height <= 400) {
JOptionPane.showMessageDialog(getMainFrame(), err, "Sim Control Panel Error", JOptionPane.ERROR_MESSAGE);
}
} catch (BadLocationException ble) {
JOptionPane.showMessageDialog(getMainFrame(),
"Status Message Pane had an issue when printing: " + err,
Expand Down

0 comments on commit 1422dac

Please sign in to comment.