Skip to content

Commit

Permalink
feat: close the window after saving the settings, fixes a Spanish tra…
Browse files Browse the repository at this point in the history
…nslation error
  • Loading branch information
CodeDead committed Jan 19, 2025
1 parent 654e636 commit cee75d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ private void saveSettingsAction() {
Configurator.setAllLevels(LogManager.getRootLogger().getName(), level);
try {
settingsController.saveProperties();

Stage stage = (Stage) sldAudioBalance.getScene().getWindow();
stage.close();
} catch (final IOException ex) {
logger.error("Unable to save all settings", ex);
FxUtils.showErrorAlert(translationBundle.getString("SaveSettingsError"), ex.toString(), getClass().getResourceAsStream(SharedVariables.ICON_URL));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ OpenSoundPreset=Preajuste de sonido abierto
OpenSoundPresetError=¡No se puede abrir el preajuste de sonido!
Phone=Teléfono
Rain=Lluvia
Reset=Reiniciar
Reset=Restablecer
ResetSettingsError=¡No se pueden restablecer todas las configuraciones!
RestartRequired=¡Es necesario reiniciar para cambiar el idioma!
Save=Guardar
Expand Down

0 comments on commit cee75d5

Please sign in to comment.