Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions OpenUtau.Core/Util/Preferences.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ public class SerializablePreferences {
public bool LockUnselectedNotesPitch = true;
public bool LockUnselectedNotesVibrato = true;
public bool LockUnselectedNotesExpressions = true;
public bool LyricLivePreview = true;
public bool LyricApplySelectionOnly = true;
public bool VoicebankPublishUseIgnore = true;
public string VoicebankPublishIgnores = @"#Adobe Audition
*.pkf
Expand Down
10 changes: 8 additions & 2 deletions OpenUtau/ViewModels/LyricsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class LyricsViewModel : ViewModelBase {
[Reactive] public string? Text { get; set; } = string.Empty;
[Reactive] public int CurrentCount { get; set; }
[Reactive] public int TotalCount { get; set; }
[Reactive] public bool LivePreview { get; set; } = true;
[Reactive] public bool ApplySelection { get; set; } = true;
[Reactive] public bool LivePreview { get; set; } = Preferences.Default.LyricLivePreview;
[Reactive] public bool ApplySelection { get; set; } = Preferences.Default.LyricApplySelectionOnly;

private UVoicePart? part;
private UNote[]? notes;
Expand Down Expand Up @@ -84,11 +84,17 @@ public void Reset() {
public void Cancel() {
DocManager.Inst.RollBackUndoGroup();
DocManager.Inst.EndUndoGroup();
Preferences.Default.LyricLivePreview = LivePreview;
Preferences.Default.LyricApplySelectionOnly = ApplySelection;
Preferences.Save();
}

public void Finish() {
Preview(true);
DocManager.Inst.EndUndoGroup();
Preferences.Default.LyricLivePreview = LivePreview;
Preferences.Default.LyricApplySelectionOnly = ApplySelection;
Preferences.Save();
}
}
}
Loading