Constructor
new SettingsView(storage)
Parameters:
Name | Type | Description |
---|---|---|
storage |
Storage | Storage object. |
- Source:
Methods
updateFilepath()
Updates the path to the user data directory. In case the path changes,
it moves all files from the old directory to the new location.
- Source:
updatePreference(name, value)
Updates the a given preference (and displays the new value).
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The name of the preference which should be updated. |
value |
string | The new value for that preference. |
- Source:
updatePreferences()
Displays the currently selected values for the preferences.
- Source:
updateView()
Updates the view.
- Source: