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
|
|
@ -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),
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue