You've already forked joplin
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user