-
Notifications
You must be signed in to change notification settings - Fork 1.7k
HelpWindow: help window stays open even after exiting by clicking the close button #826
Comments
On MacOS: When both the application & Help Window are full screen, executing |
I cannot reproduce this bug on Windows 10. |
I just tried it out on Linux and didn't face any issue... can you tell us what you did step by step? :P I was able get the
|
I'm able to reproduce the bug on Windows 10 though:
|
Ah okay, I can now reproduce this issue. In fact, you don't even need the screen to be full in order to reproduce this bug. I took a quick look at the codebase, and I think the reason is because I see two different possible ways of solving this:
diff --git a/src/main/java/seedu/address/ui/MainWindow.java b/src/main/java/seedu/address/ui/MainWindow.java
index 20ad5fee..ce5f29c4 100644
--- a/src/main/java/seedu/address/ui/MainWindow.java
+++ b/src/main/java/seedu/address/ui/MainWindow.java
@@ -166,6 +166,7 @@ public class MainWindow extends UiPart<Stage> {
@FXML
public void handleHelp() {
HelpWindow helpWindow = new HelpWindow();
+ helpWindow.getRoot().initOwner(this.getRoot()); // note: on Windows, HelpWindow is not visible on the taskbar.
helpWindow.show();
} |
This should not be the case as closing the app should close every other window related to it.
Edit: Likely to happen on certain operating systems only. So far, it seems to be happening on Linux.
The text was updated successfully, but these errors were encountered: