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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user