Skip to content

Commit ee308e1

Browse files
authored
Restore API compatibility for Settings.fillFromJson #676
1 parent 917f90f commit ee308e1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Settings.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { DisplaySettings } from '@src/DisplaySettings';
33
import { ImporterSettings } from '@src/ImporterSettings';
44
import { FingeringMode, NotationMode, NotationSettings, NotationElement } from '@src/NotationSettings';
55
import { PlayerSettings } from '@src/PlayerSettings';
6+
import { SettingsSerializer } from '@src/generated/SettingsSerializer';
67

78
/**
89
* This public class contains instance specific settings for alphaTab
@@ -57,4 +58,11 @@ export class Settings {
5758
settings.setSongBookModeSettings();
5859
return settings;
5960
}
61+
62+
/**
63+
* @target web
64+
*/
65+
public fillFromJson(json: any): void {
66+
SettingsSerializer.fromJson(this, json);
67+
}
6068
}

0 commit comments

Comments
 (0)