Skip to content

Commit

Permalink
Adjust the DI order also.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Sep 25, 2023
1 parent 0c7a3f6 commit 6f4e97b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ public partial class IssueNavigator : Component, IIssueNavigator
private IEditRubyModeState editRubyModeState { get; set; } = null!;

[Resolved]
private IEditRomajiModeState editRomajiModeState { get; set; } = null!;
private ITimeTagModeState timeTagModeState { get; set; } = null!;

[Resolved]
private ITimeTagModeState timeTagModeState { get; set; } = null!;
private IEditRomajiModeState editRomajiModeState { get; set; } = null!;

[Resolved]
private IEditNoteModeState noteModeState { get; set; } = null!;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ public partial class LyricEditor : Container, ILyricEditorState, IKeyBindingHand
[Cached(typeof(IEditRubyModeState))]
private readonly EditRubyModeState editRubyModeState;

[Cached(typeof(IEditRomajiModeState))]
private readonly EditRomajiModeState editRomajiModeState;

[Cached(typeof(ITimeTagModeState))]
private readonly TimeTagModeState timeTagModeState;

[Cached(typeof(IEditRomajiModeState))]
private readonly EditRomajiModeState editRomajiModeState;

[Cached(typeof(IEditNoteModeState))]
private readonly EditNoteModeState editNoteModeState;

Expand Down Expand Up @@ -103,8 +103,8 @@ public LyricEditor()
AddInternal(editReferenceLyricModeState = new EditReferenceLyricModeState());
AddInternal(languageModeState = new LanguageModeState());
AddInternal(editRubyModeState = new EditRubyModeState());
AddInternal(editRomajiModeState = new EditRomajiModeState());
AddInternal(timeTagModeState = new TimeTagModeState());
AddInternal(editRomajiModeState = new EditRomajiModeState());
AddInternal(editNoteModeState = new EditNoteModeState());

// Separated feature.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ public partial class LyricEditorClipboard : Component, ILyricEditorClipboard
private IEditRubyModeState editRubyModeState { get; set; } = null!;

[Resolved]
private IEditRomajiModeState editRomajiModeState { get; set; } = null!;
private ITimeTagModeState timeTagModeState { get; set; } = null!;

[Resolved]
private ITimeTagModeState timeTagModeState { get; set; } = null!;
private IEditRomajiModeState editRomajiModeState { get; set; } = null!;

[Resolved]
private ILyricsChangeHandler? lyricsChangeHandler { get; set; }
Expand Down

0 comments on commit 6f4e97b

Please sign in to comment.