-
Notifications
You must be signed in to change notification settings - Fork 313
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
refactor: getIpcMainHandle
を追加
#2563
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.
LGTM!!!
良い切り出しだと思います!!!
*/ | ||
async function retryShowSaveDialogWhileSafeDir< | ||
T extends Electron.OpenDialogReturnValue | Electron.SaveDialogReturnValue, | ||
>(showDialogFunction: () => Promise<T>, appDirPath: string): Promise<T> { |
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.
(ただのコメントです)
このappDirPath
とかもAppManagerを作って取得可能にしたいですねぇ!!
次は最後のAppManager!!! なんかこう・・・・・・appを使っているコードをきれいに分離できないと言うか、何個か違う役割を担ってそうな気がするんですよね・・・・・・ ちょっと自信ないのですが、一旦切り出してみる感じで、 ちょっと読みきれてないのですが、こんな感じとかでどうでしょう!!
うーーーーーーーーーーーーーーん。。。これで良いのかちょっと自信ないのですが。。。。 あ、先にリファクタリングをする手もあると思います。main.tsにある小さい括りを適当に関数にして呼ぶだけですが。 あと おすすめは~~~~~~まあ先に |
@Hiroshiba そういえば |
な、なるほど。。。。 ここで迂回作とかが議論されていそう。もうちょっと待っても良いかも。 VOICEVOXエディタ内にもissue作っても良いかもですね! |
内容
#2455 (comment) で提案されたリファクタリングです。
その他
特に大きな問題なく切り離せたと思います。