mirror of
https://github.com/real-zony/ZonyLrcToolsX.git
synced 2025-09-05 21:16:52 +00:00
feat: Mostly completed bidirectional binding for settings page and configuration.
This commit is contained in:
@@ -21,14 +21,10 @@ public class GlobalConfigurationViewModel : ViewModelBase
|
||||
IsSkipExistLyricFiles = globalConfig.IsSkipExistLyricFiles;
|
||||
IsOnlyOutputTranslation = globalConfig.IsOnlyOutputTranslation;
|
||||
|
||||
this.WhenAnyValue(x => x.IsOneLine)
|
||||
.Subscribe(x => globalConfig.IsOneLine = x);
|
||||
this.WhenAnyValue(x => x.IsEnableTranslation)
|
||||
.Subscribe(x => globalConfig.IsEnableTranslation = x);
|
||||
this.WhenAnyValue(x => x.IsSkipExistLyricFiles)
|
||||
.Subscribe(x => globalConfig.IsSkipExistLyricFiles = x);
|
||||
this.WhenAnyValue(x => x.IsOnlyOutputTranslation)
|
||||
.Subscribe(x => globalConfig.IsOnlyOutputTranslation = x);
|
||||
SubscribeToProperty(this, x => x.IsOneLine, x => globalConfig.IsOneLine = x);
|
||||
SubscribeToProperty(this, x => x.IsEnableTranslation, x => globalConfig.IsEnableTranslation = x);
|
||||
SubscribeToProperty(this, x => x.IsSkipExistLyricFiles, x => globalConfig.IsSkipExistLyricFiles = x);
|
||||
SubscribeToProperty(this, x => x.IsOnlyOutputTranslation, x => globalConfig.IsOnlyOutputTranslation = x);
|
||||
}
|
||||
|
||||
[Reactive] public bool IsOneLine { get; set; }
|
||||
|
Reference in New Issue
Block a user