Skip to content

Commit

Permalink
Merge pull request #47 from guowei42/update-help
Browse files Browse the repository at this point in the history
remove unnecessary files
  • Loading branch information
cxyterence authored Oct 12, 2022
2 parents 73b4407 + 6fb0493 commit 8ac6f67
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 177 deletions.
102 changes: 0 additions & 102 deletions src/main/java/seedu/address/ui/HelpWindow.java

This file was deleted.

13 changes: 1 addition & 12 deletions src/main/java/seedu/address/ui/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public class MainWindow extends UiPart<Stage> {
// Independent Ui parts residing in this Ui container
private PersonListPanel personListPanel;
private ResultDisplay resultDisplay;
private HelpWindow helpWindow;

@FXML
private StackPane commandBoxPlaceholder;
Expand Down Expand Up @@ -65,8 +64,6 @@ public MainWindow(Stage primaryStage, Logic logic) {
setWindowDefaultSize(logic.getGuiSettings());

setAccelerators();

helpWindow = new HelpWindow();
}

public Stage getPrimaryStage() {
Expand Down Expand Up @@ -137,19 +134,12 @@ private void setWindowDefaultSize(GuiSettings guiSettings) {
}

/**
* Opens the help window or focuses on it if it's already opened.
* Opens the help window in a new browser window
*/
@FXML
public void handleHelp() {
UrlLauncher helpController = new UrlLauncher();
helpController.launchWebPage(USERGUIDE_URL);
/*
if (!helpWindow.isShowing()) {
helpWindow.show();
} else {
helpWindow.focus();
}
*/
}

void show() {
Expand All @@ -164,7 +154,6 @@ private void handleExit() {
GuiSettings guiSettings = new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(),
(int) primaryStage.getX(), (int) primaryStage.getY());
logic.setGuiSettings(guiSettings);
helpWindow.hide();
primaryStage.hide();
}

Expand Down
19 changes: 0 additions & 19 deletions src/main/resources/view/HelpWindow.css

This file was deleted.

44 changes: 0 additions & 44 deletions src/main/resources/view/HelpWindow.fxml

This file was deleted.

0 comments on commit 8ac6f67

Please sign in to comment.