Skip to content

Commit cee75d5

Browse files
committed
feat: close the window after saving the settings, fixes a Spanish translation error
1 parent 654e636 commit cee75d5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/main/java/com/codedead/opal/controller/SettingsWindowController.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ private void saveSettingsAction() {
272272
Configurator.setAllLevels(LogManager.getRootLogger().getName(), level);
273273
try {
274274
settingsController.saveProperties();
275+
276+
Stage stage = (Stage) sldAudioBalance.getScene().getWindow();
277+
stage.close();
275278
} catch (final IOException ex) {
276279
logger.error("Unable to save all settings", ex);
277280
FxUtils.showErrorAlert(translationBundle.getString("SaveSettingsError"), ex.toString(), getClass().getResourceAsStream(SharedVariables.ICON_URL));

src/main/resources/translations/OpalApplication_es_ES.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ OpenSoundPreset=Preajuste de sonido abierto
3131
OpenSoundPresetError=¡No se puede abrir el preajuste de sonido!
3232
Phone=Teléfono
3333
Rain=Lluvia
34-
Reset=Reiniciar
34+
Reset=Restablecer
3535
ResetSettingsError=¡No se pueden restablecer todas las configuraciones!
3636
RestartRequired=¡Es necesario reiniciar para cambiar el idioma!
3737
Save=Guardar

0 commit comments

Comments
 (0)