feat: gray out paste menu when clipboard is empty or location unsupported
This commit is contained in:
parent
f9d4ca4867
commit
591ba0f9b9
5 changed files with 173 additions and 20 deletions
|
|
@ -325,3 +325,14 @@ impl TryFrom<(Vec<u8>, String)> for ClipboardPasteText {
|
|||
})
|
||||
}
|
||||
}
|
||||
|
||||
/// Cached clipboard content for paste operations.
|
||||
/// This is needed because Wayland restricts clipboard access from popup windows.
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum ClipboardCache {
|
||||
Files(ClipboardPaste),
|
||||
Image(ClipboardPasteImage),
|
||||
Video(ClipboardPasteVideo),
|
||||
Text(ClipboardPasteText),
|
||||
Empty,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue