Skip to content

PluginSettingsComponentBase.restoreRecoveryCopy method

PluginSettingsComponentBase › restoreRecoveryCopy

Restores a recovery copy of data.json kept on this device: writes its record back to the file and reloads the settings from it.

The settings in use are kept as a recovery copy of their own first, so a restore loses nothing either.

Signature:

restoreRecoveryCopy(id: string): Promise<void>

Parameters:

ParameterTypeDescription
idstringThe id of the copy, from {@link getRecoveryCopies}.

Returns: Promise<void> — A Promise that resolves when the restored settings are loaded.