diff --git a/ChangeLog.md b/ChangeLog.md index 5809530..3a50f93 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,14 @@ # Braindrop ChangeLog +## Unreleased + +**Released: WiP** + +- Extended the disabling of edits to any Raindrop associated with a file + that has been uploaded to `raindrop.io`. In testing it seems the data loss + happens with any Raindrop with an `up.raindrop.io` domain. + ([#123](https://github.com/davep/braindrop/issues/123)) + ## v0.7.0 **Released: 2025-01-27** diff --git a/src/braindrop/app/screens/main.py b/src/braindrop/app/screens/main.py index dbe9251..45b84d5 100644 --- a/src/braindrop/app/screens/main.py +++ b/src/braindrop/app/screens/main.py @@ -674,12 +674,13 @@ async def action_edit_raindrop_command(self) -> None: # For the moment, don't allow editing of uploaded images. # https://github.com/davep/braindrop/issues/123 - if raindrop.type == "image": + if raindrop.domain == "up.raindrop.io": self.notify( - "Editing of Raindrops that are images can cause the image to be lost. " - "While I investigate why this is I'm disabling the editing of any " - "Raindrop that is an image type.", - title="Editing if images is disabled", + "There seems to be a problem with the Raindrop API where, " + "if you modify a Raindrop associated with an uploaded file, " + "the uploaded file is lost.\n\n" + "To ensure your file isn't lost this edit is not permitted.", + title="Editing of uploads disabled", severity="warning", timeout=8, )