Closed tktcorporation closed 5 months ago
この変更では、Electronのプロジェクトにおいて、IPCハンドラの作成方法を変更し、トレイ設定の呼び出し方を調整しています。具体的には、electron-trpc/main
からcreateIPCHandler
をインポートし、それを使用してIPC通信を設定。また、ウィンドウ作成時のトレイ設定をcreateOrGetWindow
関数に移動しました。さらに、setTimeEventEmitter
関数に条件ロジックを追加して、作成されたファイルの長さに基づいて処理を分岐させています。
ファイル | 変更概要 |
---|---|
electron/electronUtil.ts |
- |
electron/index.ts |
- createIPCHandler のインポート追加- electronUtil.setTray() の呼び出し削除- createWindow 関数からcreateIPCHandler の呼び出し削除- createIPCHandler にrouter とmainWindow を渡して呼び出し- createOrGetWindow にsetTray の呼び出し追加- setTimeEventEmitter に条件ロジック追加 |
🐰✨変更のために跳ねる、コードの森を駆ける
新しい道、トレイに花を添える
ビットの波に乗り、窓を開け放つ
画面の向こう、未来を繋ぐ橋
さあ、共に進もう、新たな朝へ🌅🚀
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
新機能
バグ修正