Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undo/redo時にノートの選択が解除されないのを修正 #1916

Conversation

sigprogramming
Copy link
Contributor

内容

undo/redo時にノートの選択が解除されておらず、ADD_NOTESをundoしたときに存在しないノートのIDがselectedNoteIdsに入ってしまっていたので、修正します。

その他

@sigprogramming sigprogramming requested a review from a team as a code owner March 7, 2024 11:03
@sigprogramming sigprogramming requested review from Hiroshiba and removed request for a team March 7, 2024 11:03
Copy link
Member

@sevenc-nanashi sevenc-nanashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

トーク側に合わせて、値を_selectedNoteIdsに保存してSELECTED_NOTE_IDSgetterで良い感じにフィルタしながら取る形にしてもいいかも?

@sigprogramming
Copy link
Contributor Author

@sevenc-nanashi
ありがとうございます!
ご提案いただいた形も良さそう!

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

修正ありがとうございます!

@sevenc-nanashi さんのおっしゃる通り、フィルタリングする形が良いのかなと思いました!
多分undo/redo以外にも選択ノートの妙な変更が実装される可能性があるので、その時に毎回手続き的にselect/deselectしているといつか間違う気がするので、GETTERのが良さそうに感じました。
とりあえず こちらで to do コメントだけ書き換えさせていただいてマージします!

こちらの変更はホットフィックスとして0.17.1に取り込みたいと思います!

src/store/command.ts Outdated Show resolved Hide resolved
src/store/command.ts Outdated Show resolved Hide resolved
@Hiroshiba Hiroshiba changed the base branch from main to release-0.17 March 7, 2024 15:40
@Hiroshiba Hiroshiba merged commit 673e3bc into VOICEVOX:release-0.17 Mar 7, 2024
9 checks passed
@Hiroshiba
Copy link
Member

こちら忘れないようにissue作成します!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants