Fixed Proper disabling switching items or other actions on editation

This commit is contained in:
Jindra Petřík
2022-12-03 23:17:44 +01:00
parent 8e8dadc23b
commit 60c5eb14ba
5 changed files with 165 additions and 36 deletions

View File

@@ -157,6 +157,9 @@ public class PinsPanel extends JPanel {
pinButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
if (mainPanel.checkEdited()) {
return;
}
current = pinButton.getItem();
if (lastSelectedButton != null) {
lastSelectedButton.setSelected(false);