feat: gray out paste menu when clipboard is empty or location unsupported

This commit is contained in:
Frederic Laing 2026-02-11 18:21:06 +01:00 committed by Jacob Kauffmann
parent f9d4ca4867
commit 591ba0f9b9
5 changed files with 173 additions and 20 deletions

View file

@ -1804,6 +1804,7 @@ impl Application for App {
&app.tab,
&app.key_binds,
&app.modifiers,
false, // Paste not used in dialogs
)
.map(Message::TabMessage)
.map(cosmic::Action::App),
@ -1988,7 +1989,7 @@ impl Application for App {
col = col.push(
self.tab
.view(&self.key_binds, &self.modifiers)
.view(&self.key_binds, &self.modifiers, false)
.map(Message::TabMessage),
);