mirror of
https://github.com/correl/mage.git
synced 2025-04-06 09:13:45 -09:00
Closing Feedback Dialog on send.
This commit is contained in:
parent
49c403da0e
commit
b3f99c43d5
1 changed files with 2 additions and 1 deletions
|
@ -253,6 +253,7 @@ public class FeedbackDialog extends javax.swing.JDialog {
|
|||
if (MageFrame.getSession().sendFeedback(title, type, message, email)) {
|
||||
JOptionPane.showMessageDialog(null, "Feedback was sent. Thank you!", "Success", JOptionPane.INFORMATION_MESSAGE);
|
||||
reset();
|
||||
dialog.setVisible(false);
|
||||
} else {
|
||||
JOptionPane.showMessageDialog(null, "Couldn't sent feedback.", "Error", JOptionPane.ERROR_MESSAGE);
|
||||
}
|
||||
|
@ -278,7 +279,7 @@ public class FeedbackDialog extends javax.swing.JDialog {
|
|||
}
|
||||
|
||||
private void reset() {
|
||||
jTabbedPane1.setSelectedIndex(0);
|
||||
cbFeedbackType.setSelectedIndex(0);
|
||||
txtIdeaTitle.setText("");
|
||||
txtFeedbackMessage.setText("");
|
||||
txtEmail.setText("");
|
||||
|
|
Loading…
Add table
Reference in a new issue