mirror of
https://github.com/madari-media/madari-oss.git
synced 2026-01-11 22:40:23 +00:00
fix: fix play config
Some checks failed
Build and Deploy / build_windows (push) Has been cancelled
Build and Deploy / build_android (push) Has been cancelled
Build and Deploy / build_android_tv (push) Has been cancelled
Build and Deploy / build_ipa (push) Has been cancelled
Build and Deploy / build_linux (push) Has been cancelled
Build and Deploy / build_macos (push) Has been cancelled
Some checks failed
Build and Deploy / build_windows (push) Has been cancelled
Build and Deploy / build_android (push) Has been cancelled
Build and Deploy / build_android_tv (push) Has been cancelled
Build and Deploy / build_ipa (push) Has been cancelled
Build and Deploy / build_linux (push) Has been cancelled
Build and Deploy / build_macos (push) Has been cancelled
This commit is contained in:
parent
9952f0716b
commit
356f197a4c
1 changed files with 6 additions and 1 deletions
|
|
@ -110,7 +110,12 @@ class _PlaybackSettingsScreenState extends State<PlaybackSettingsScreen> {
|
|||
}
|
||||
|
||||
void _loadPlaybackSettings() {
|
||||
final playbackConfig = getPlaybackConfig();
|
||||
PlaybackConfig playbackConfig;
|
||||
try {
|
||||
playbackConfig = getPlaybackConfig();
|
||||
} catch (e) {
|
||||
playbackConfig = PlaybackConfig.fromJson({});
|
||||
}
|
||||
|
||||
_autoPlay = playbackConfig.autoPlay ?? true;
|
||||
_playbackSpeed = playbackConfig.playbackSpeed.toDouble();
|
||||
|
|
|
|||
Loading…
Reference in a new issue