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の記録を無効化可能に #285

Merged
merged 1 commit into from
Sep 30, 2021

Conversation

Segu-g
Copy link
Member

@Segu-g Segu-g commented Sep 30, 2021

内容

#233で私が実装したUndo/Redoの実装で、ImmerとVueのProxyの衝突を避けるためにState全体のコピーを撮っています。この処理はStateの大きさに従って計算コストが掛かるため製品版では問題になることが予測されます。
このプルリクエストではUndo/Redoの記録をとるかどうかのフラグをStateにおくことで、製品版ではUndo/Redoの記録をとらないようにします。

関連 Issue

ref #116

スクリーンショット・動画など

その他

実験的機能としての選択はIMPORT_TEXTPUT_TEXT等を移行してから実装すべきだと思ったので、このプルリクエストでは実装していません。

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!

@Hiroshiba Hiroshiba merged commit d343bdf into VOICEVOX:main Sep 30, 2021
@Segu-g Segu-g deleted the feature/disableable_undo_redo branch October 8, 2021 18:53
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.

2 participants