Skip to content

Commit

Permalink
feat(SceneFactory): Optional marking for ExchangeView
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelSapula committed May 25, 2026
1 parent 4fa891f commit e9196e8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/java/edu/ntnu/idi/idatt/view/SceneFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,14 @@ public static Parent createPortfolioView() {
*
* @return View's root.
*/
public static Parent createExchangeView() {
public static Parent createExchangeView(boolean markValue) {

mark(() -> createExchangeView());
if (markValue) {
mark(() -> createExchangeView(true));
} else {
navigation.clear();
mark(() -> createExchangeView(true));
}

ExchangeModel model = new ExchangeModel();
ExchangeView view = new ExchangeView();
Expand Down

0 comments on commit e9196e8

Please sign in to comment.