Skip to content

Commit

Permalink
🐛 Temporarily disable editing image Raindrops
Browse files Browse the repository at this point in the history
See #123.
  • Loading branch information
davep committed Jan 27, 2025
1 parent 59583c2 commit 8c86bd9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
- Fixed focus getting lost for a moment if it was within the details panel
and the details panel was closed.
([#114](https://github.com/davep/braindrop/issues/114))
- Temporarily disabled the ability to edit a Raindrop that is an uploaded
image type. ([#123](https://github.com/davep/braindrop/issues/123))

## v0.6.1

Expand Down
13 changes: 13 additions & 0 deletions src/braindrop/app/screens/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,19 @@ async def action_edit_raindrop_command(self) -> None:
if (raindrop := self._current_raindrop("edit")) is None:
return

# For the moment, don't allow editing of uploaded images.
# https://github.com/davep/braindrop/issues/123
if raindrop.type == "image":
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",
severity="warning",
timeout=8,
)
return

# If we've got a draft, and it's for the current raindrop...
if (
self._draft_raindrop is not None
Expand Down

0 comments on commit 8c86bd9

Please sign in to comment.