1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Desktop: Fixes #3407: In some cases, changes made to an attachment would not be saved. Also added banner to show that an attachment is being edited

This commit is contained in:
Laurent Cozic
2020-07-22 19:03:31 +01:00
parent f3dc3602c8
commit 4bef79cd71
18 changed files with 200 additions and 111 deletions

View File

@ -632,7 +632,13 @@ class BaseApplication {
SyncTargetRegistry.addClass(SyncTargetDropbox);
SyncTargetRegistry.addClass(SyncTargetAmazonS3);
await shim.fsDriver().remove(tempDir);
try {
await shim.fsDriver().remove(tempDir);
} catch (error) {
// Can't do anything in this case, not even log, since the logger
// is not yet ready. But normally it's not an issue if the temp
// dir cannot be deleted.
}
await fs.mkdirp(profileDir, 0o755);
await fs.mkdirp(resourceDir, 0o755);