mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 13:18:27 +02:00
Fix calling definition.ready() multiple times
This commit is contained in:
@@ -28,7 +28,10 @@ export class BaseSettingsStorage<T extends AnyPref> {
|
||||
}
|
||||
*/
|
||||
|
||||
setting.ready && setting.ready.call(this, setting);
|
||||
if (setting.ready) {
|
||||
setting.ready.call(this, setting);
|
||||
delete setting.ready;
|
||||
}
|
||||
}
|
||||
this.definitions = definitions;
|
||||
|
||||
|
Reference in New Issue
Block a user