mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-08 12:35:26 +00:00
formatting
This commit is contained in:
parent
40f466548b
commit
856c570e27
@ -333,12 +333,14 @@ impl Television {
|
||||
}
|
||||
}
|
||||
}
|
||||
Action::CopyEntryToClipboard => if self.mode == Mode::Channel {
|
||||
Action::CopyEntryToClipboard => {
|
||||
if self.mode == Mode::Channel {
|
||||
if let Some(entry) = self.get_selected_entry(None) {
|
||||
let mut ctx = ClipboardContext::new().unwrap();
|
||||
ctx.set_contents(entry.name).unwrap();
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
Action::ToggleSendToChannel => match self.mode {
|
||||
Mode::Channel | Mode::RemoteControl => {
|
||||
self.mode = Mode::SendToChannel;
|
||||
|
Loading…
x
Reference in New Issue
Block a user