fix: don't auto-translate on auto-save, only on manual save (#49)

Co-authored-by: hugo <hugoms@me.com>
This commit is contained in:
Georg Bauer
2026-03-12 21:37:45 +01:00
committed by GitHub
parent ab91ec1848
commit 6a8d38d5a2
5 changed files with 209 additions and 54 deletions

View File

@@ -734,6 +734,9 @@ export const PostEditor: React.FC<PostEditorProps> = ({ postId }) => {
updatePost(postId, { status: 'draft' } as Partial<PostData>);
}
markClean(postId);
// Trigger auto-translation for missing languages on manual save
window.electronAPI?.posts.requestAutoTranslation(postId).catch(() => {});
} catch (error) {
console.error('Failed to save post:', error);
const err = error as Error;