Skip to content

Commit

Permalink
create .sqlfx if it does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
pietermartin committed Dec 5, 2023
1 parent e8adf30 commit 06cf8d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/sqlg/ui/model/Root.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public Root() {
this.objectMapper = new ObjectMapper();
String homeProp = System.getProperty("user.home");
this.configPath = new File(homeProp).toPath().resolve(".sqlgfx");
//noinspection ResultOfMethodCallIgnored
this.configPath.toFile().mkdir();
ListOrderedSet<User> users = readConfig();
if (users.isEmpty()) {
User fake = new User(this, "fake", null);
Expand Down

0 comments on commit 06cf8d5

Please sign in to comment.