Skip to content

Commit 5c87546

Browse files
committed
Fix: save all PGN header fields before exporting
1 parent 3f3e88e commit 5c87546

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/src/view/analysis/analysis_share_screen.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ class _EditPgnTagsFormState extends ConsumerState<_EditPgnTagsForm> {
162162
builder: (context) {
163163
return FilledButton(
164164
onPressed: () {
165+
for (final entry in pgnHeaders.entries) {
166+
ref
167+
.read(ctrlProvider.notifier)
168+
.updatePgnHeader(entry.key, _controllers[entry.key]!.text);
169+
}
165170
launchShareDialog(
166171
context,
167172
ShareParams(

0 commit comments

Comments
 (0)