mirror of https://github.com/noisymime/Arduino.git
Swap "Copy for Forum" and "Copy as HTML" actions
Fixes #5401
The bug was introduced by 982d4f3f
, when DiscourseFormat(Editor, bool html) declarations were swapped. The contextual/right click menu in EditorTab already behaves correctly.
This commit is contained in:
parent
6dacb6b0bf
commit
55b55b29e6
|
@ -1306,7 +1306,7 @@ public class Editor extends JFrame implements RunnerListener {
|
||||||
JMenuItem copyForumItem = newJMenuItemShift(tr("Copy for Forum"), 'C');
|
JMenuItem copyForumItem = newJMenuItemShift(tr("Copy for Forum"), 'C');
|
||||||
copyForumItem.addActionListener(new ActionListener() {
|
copyForumItem.addActionListener(new ActionListener() {
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
getCurrentTab().handleHTMLCopy();
|
getCurrentTab().handleDiscourseCopy();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
menu.add(copyForumItem);
|
menu.add(copyForumItem);
|
||||||
|
@ -1314,7 +1314,7 @@ public class Editor extends JFrame implements RunnerListener {
|
||||||
JMenuItem copyHTMLItem = newJMenuItemAlt(tr("Copy as HTML"), 'C');
|
JMenuItem copyHTMLItem = newJMenuItemAlt(tr("Copy as HTML"), 'C');
|
||||||
copyHTMLItem.addActionListener(new ActionListener() {
|
copyHTMLItem.addActionListener(new ActionListener() {
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
getCurrentTab().handleDiscourseCopy();
|
getCurrentTab().handleHTMLCopy();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
menu.add(copyHTMLItem);
|
menu.add(copyHTMLItem);
|
||||||
|
|
Loading…
Reference in New Issue