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

Redraw時のフラグ管理変更 #34

Merged
merged 2 commits into from
Feb 20, 2024
Merged

Conversation

haruyan-hopemucci
Copy link
Owner

  • 画像生成時にhistoryに元画像を追加するかどうかのフラグをグローバルに持たせる
  • 画像生成する関数ではこのフラグを参照してHistoryに追加するかどうかを判断し、必ずfalseに戻す

画像生成のタイミングをsrc要素のonloadイベントハンドラで行っているため、イベント発生のたびに履歴に追加するかどうかを外部注入できないので妥協した

@haruyan-hopemucci haruyan-hopemucci self-assigned this Feb 20, 2024
@haruyan-hopemucci haruyan-hopemucci merged commit 566aa63 into main Feb 20, 2024
1 check passed
@haruyan-hopemucci haruyan-hopemucci deleted the fix/generate-lgtn-at-once branch February 20, 2024 14:52
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.

Historyからの画像生成が初回の1回しか動作しない
1 participant