From d537b3e9c3e3b35a39be54f7189452fe92be4615 Mon Sep 17 00:00:00 2001 From: dzmipt Date: Sat, 6 Jan 2024 00:32:09 +0100 Subject: [PATCH] even more logging for debug --- src/studio/ui/EditorsPanel.java | 1 + src/studio/ui/StudioWindow.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/studio/ui/EditorsPanel.java b/src/studio/ui/EditorsPanel.java index 565f4a34..40037a4e 100644 --- a/src/studio/ui/EditorsPanel.java +++ b/src/studio/ui/EditorsPanel.java @@ -300,6 +300,7 @@ public static boolean checkAndSaveTab(EditorTab editor) { int choice = StudioOptionPane.showYesNoCancelDialog(editor.getPane(), editor.getTitle() + " is changed. Save changes?","Save changes?"); + log.info("checkAndSaveTab choice={}", choice); if (choice == JOptionPane.CANCEL_OPTION || choice == JOptionPane.CLOSED_OPTION) return false; if (choice == JOptionPane.YES_OPTION) { diff --git a/src/studio/ui/StudioWindow.java b/src/studio/ui/StudioWindow.java index e69e3107..189d389c 100755 --- a/src/studio/ui/StudioWindow.java +++ b/src/studio/ui/StudioWindow.java @@ -833,6 +833,7 @@ public void close() { if (allWindows.size() == 1) { quit(); } else { + log.info("SW: Before close tab"); boolean result = execute(editorTab -> editorTab.getEditorsPanel().closeTab(editorTab)); if (!result) return; log.info("StudioWindow closing");