Skip to content

Commit

Permalink
Do not try to load location if not authenticated. Show an alert instead
Browse files Browse the repository at this point in the history
  • Loading branch information
javierllorente committed Oct 12, 2024
1 parent 1f55c17 commit e9dd873
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/com/javierllorente/obsfx/BrowserController.java
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,12 @@ private String getLocationPackage() {

private void load(String location) {
logger.log(Level.INFO, "location = {0}", location);

if (!App.getOBS().isAuthenticated()) {
showNotAuthenticatedAlert();
return;
}

currentProject = getLocationProject();
currentPackage = getLocationPackage();
startPackagesTask();
Expand Down

0 comments on commit e9dd873

Please sign in to comment.