Skip to content

Commit

Permalink
🔀 Merge pull request #124 from davep/only-links
Browse files Browse the repository at this point in the history
Temporarily disable editing image Raindrops
  • Loading branch information
davep authored Jan 27, 2025
2 parents 59583c2 + 682f10c commit 7cfae7c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
- 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/pull/124) in
support of [#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 7cfae7c

Please sign in to comment.