mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08: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)) {
|
if (MageFrame.getSession().sendFeedback(title, type, message, email)) {
|
||||||
JOptionPane.showMessageDialog(null, "Feedback was sent. Thank you!", "Success", JOptionPane.INFORMATION_MESSAGE);
|
JOptionPane.showMessageDialog(null, "Feedback was sent. Thank you!", "Success", JOptionPane.INFORMATION_MESSAGE);
|
||||||
reset();
|
reset();
|
||||||
|
dialog.setVisible(false);
|
||||||
} else {
|
} else {
|
||||||
JOptionPane.showMessageDialog(null, "Couldn't sent feedback.", "Error", JOptionPane.ERROR_MESSAGE);
|
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() {
|
private void reset() {
|
||||||
jTabbedPane1.setSelectedIndex(0);
|
cbFeedbackType.setSelectedIndex(0);
|
||||||
txtIdeaTitle.setText("");
|
txtIdeaTitle.setText("");
|
||||||
txtFeedbackMessage.setText("");
|
txtFeedbackMessage.setText("");
|
||||||
txtEmail.setText("");
|
txtEmail.setText("");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue