Skip to content

Commit

Permalink
Fix issues 12777
Browse files Browse the repository at this point in the history
Rename settings windows button from "Reset" to "Reset to Saved"

SettingsWindow.java
  • Loading branch information
frigoref committed Aug 5, 2024
1 parent 4505bce commit 8bcc331
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@

/**
* UI window with controls to update game settings and preferences. Settings are grouped by type,
* the window consists of a TabbedPane and in it we load one tab per non-hidden {@code SettingType}.
* All data needed to render the settings UI is pulled from the {@code ClientSetting} enum.
* the window consists of a TabbedPane and in it, we load one tab per non-hidden {@code
* SettingType}. All data needed to render the settings UI is pulled from the {@code ClientSetting}
* enum.
*
* @see ClientSetting
*/
Expand Down Expand Up @@ -202,7 +203,11 @@ private JComponent buildButtonPanel() {
.addHorizontalStrut(5)
.add(new JButtonBuilder().title("Close").actionListener(this::close).build())
.addHorizontalStrut(5)
.add(new JButtonBuilder().title("Reset").actionListener(this::resetSettings).build())
.add(
new JButtonBuilder()
.title("Reset to Saved")
.actionListener(this::resetSettings)
.build())
.addHorizontalStrut(5)
.add(
new JButtonBuilder()
Expand Down

0 comments on commit 8bcc331

Please sign in to comment.