1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Mobile: Resolves #9134: Image editor: Allow loading from save when the image editor is reloaded in the background (#9135)

This commit is contained in:
Henry Heino
2023-10-31 07:57:26 -07:00
committed by GitHub
parent b8c26b2ef3
commit 86b00d0a2b
2 changed files with 4 additions and 7 deletions

View File

@ -16,11 +16,13 @@ const logger = Logger.create('ImageEditor');
type OnSaveCallback = (svgData: string)=> void;
type OnCancelCallback = ()=> void;
// Returns the empty string to load from a template.
type LoadInitialSVGCallback = ()=> Promise<string>;
interface Props {
themeId: number;
loadInitialSVGData: LoadInitialSVGCallback|null;
loadInitialSVGData: LoadInitialSVGCallback;
onSave: OnSaveCallback;
onExit: OnCancelCallback;
}