Skip to content

Commit 428656a

Browse files
Changed home page to not be visible when edit is chosen. This is to ensure that the main page will not be touched when we are editing.
1 parent 1fddf1c commit 428656a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/frameworks_and_drivers/components/FlashcardSetDataPanel.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public FlashcardSetDataPanel(String title, String description,
7171

7272
// Action listeners for edit, study, test, and delete buttons.
7373
edit.addActionListener((e) -> {
74+
home.setVisible(false);
7475
EditorMainScreen editor = new EditorMainScreen(flashcardSetId);
7576
editor.addWindowListener(new WindowAdapter() {
7677
public void windowClosing(WindowEvent event) {

0 commit comments

Comments
 (0)