-
Notifications
You must be signed in to change notification settings - Fork 298
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
マルチエンジン:エンジン毎の設定を追加 #1146
マルチエンジン:エンジン毎の設定を追加 #1146
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
良いですね!!!
ちょっと全部見れてないのですが、問題が起こりにくいようにするコードの提案をいくつかコメントしました。
UIですが、実装を最速にする形を目指し、時間があればこだわっていくのが良いのかなと思いました!
なので現状からの提案の形はこんな感じになりそうです。
- 「エンジンの選択」を上に持っていく
- 「エンジンの選択」はマルチエンジン時のみ表示する
- こうすると、デフォルトエンジンの個別設定をしたあと、全体設定しかできなくなるが、これはそういう仕様にする
- 解消には「マルチエンジンじゃないときは継承する」処理を書けば良いけど、影響範囲が広いのでたぶんかなり大変
- FIXMEコメントだけ書いておく
- 個々のサンプリングレートは変えられないようにする
- そういうUIを作るより個々のサンプリングレートも変えられるようにしたほうが早いのであれば、そうしても良さそう。
Co-authored-by: Hiroshiba <hihokaruta@gmail.com>
Co-authored-by: Hiroshiba <hihokaruta@gmail.com>
Co-authored-by: Hiroshiba <hihokaruta@gmail.com>
This reverts commit 880de38.
レビューされた部分を修正しましたー。 |
Co-authored-by: Hiroshiba <hihokaruta@gmail.com>
@@ -977,6 +975,7 @@ export type SettingStoreState = { | |||
splitTextWhenPaste: SplitTextWhenPasteType; | |||
splitterPosition: SplitterPosition; | |||
confirmedTips: ConfirmedTips; | |||
engineSettings: EngineSettings; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好みかもですが、他の〜sは複数の方を型定義してないので、合わせてこうすると揃うかもとか思いました。
engineSettings: EngineSettings; | |
engineSettings: Record<string, EngineSetting>; |
(こうするとEngineSettingsは不要になりそう)
(まあコメントしてますがかなりどっちでも良いかもです!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ストアで使ってますね
}): Promise<void>; | ||
}; | ||
|
||
CHANGE_USE_GPU: { | ||
action(payload: { useGpu: boolean }): void; | ||
action(payload: { useGpu: boolean; engineId: string }): Promise<void>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Promise<void>
じゃなくてvoid
かも(たぶん勝手にPromise型になる)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
けっこう色々なところでPromiseがついてますね
Co-authored-by: Hiroshiba <hihokaruta@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
全体設定がなくなってスッキリしたかなと思いますし、動作も問題なさそうでした!
一箇所だけ、全体設定削除に伴う変更忘れを見つけた(他にもあるかもだけど...)ので、指摘です!
Promise周りは、私が型付きVuexを作った時にどっちも許容するようにしたのが問題だったりするので、一旦無視で良いかなと...!
PRありがとうございました!!マージします!! |
内容
タイトル通り。
関連 Issue
スクリーンショット・動画など
(なし)
その他
(なし)