From e17e2c55a56a781dbeeb084654dcffbc0bef7b0d Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Thu, 18 Jan 2024 11:10:12 -0500 Subject: [PATCH] Fixed issue with profile not being set. --- .../com/andrewlalis/perfin/control/ProfilesViewController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/andrewlalis/perfin/control/ProfilesViewController.java b/src/main/java/com/andrewlalis/perfin/control/ProfilesViewController.java index c26665a..8f3d08c 100644 --- a/src/main/java/com/andrewlalis/perfin/control/ProfilesViewController.java +++ b/src/main/java/com/andrewlalis/perfin/control/ProfilesViewController.java @@ -105,7 +105,7 @@ public class ProfilesViewController { private boolean openProfile(String name, boolean showPopup) { log.info("Opening profile \"{}\".", name); try { - PerfinApp.profileLoader.load(name); + Profile.setCurrent(PerfinApp.profileLoader.load(name)); ProfilesStage.closeView(); router.replace("accounts"); if (showPopup) Popups.message(profilesVBox, "The profile \"" + name + "\" has been loaded.");