Skip to content

Commit

Permalink
Helping lucadg
Browse files Browse the repository at this point in the history
  • Loading branch information
code-irisnk committed Apr 16, 2024
1 parent a1b779a commit 352afeb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Empty file modified mvnw
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion src/main/java/team/elrant/bubbles/gui/LoginController.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected void onSubmitButtonClick() {
@FXML
public void initialize() {
try {
User userFromFile = new User("user.dat");
User userFromFile = new User("user.dat", "");
if (!userFromFile.getUsername().isEmpty()) {
username_field.setText(userFromFile.getUsername());
}
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/team/elrant/bubbles/gui/SideViewApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ public void start(@NotNull Stage stage) throws Exception {
AnchorPane root = fxmlLoader.load();
@NotNull Scene scene = new Scene(root, 320, 720);
scene.getStylesheets().add(Objects.requireNonNull(getClass().getResource("styling/fluent-light.css")).toExternalForm());
primaryStage.setTitle("Chat");
primaryStage.setScene(scene);
primaryStage.centerOnScreen();
primaryStage.setResizable(false);
primaryStage.show();
stage.setTitle("Chat");
stage.setScene(scene);
stage.centerOnScreen();
stage.setResizable(false);
stage.show();
} catch (Exception e) {
logger.error("Error starting SideViewApplication: {}", e.getMessage());
throw e;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/team/elrant/bubbles/xmpp/ConnectedUser.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class ConnectedUser extends User {
* @param password The password of the user.
* @param serviceName The service name of the XMPP server.
*/
public ConnectedUser(@NotNull String username, @NotNull String password, @NotNull String serviceName) {
public ConnectedUser(@NotNull String username, @NotNull String password, @NotNull String serviceName) throws IOException, ClassNotFoundException {
super(username, serviceName);
this.password = password;
}
Expand Down Expand Up @@ -159,7 +159,7 @@ public void saveUserToFile(@NotNull String filename, boolean savePassword) {
}

logger.info("User information (excluding password) saved to {}", filename);
} catch (IOException e) {
} catch (IOException | ClassNotFoundException e) {
logger.error("Error saving user information to file: {}", e.getMessage());
}
}
Expand Down

0 comments on commit 352afeb

Please sign in to comment.