mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-07 03:55:23 +00:00
feat(remote): redirect Action::Quit
to Action::ToggleRemoteControl
when in remote mode
This commit is contained in:
parent
fc2f8b9473
commit
fa09bc69f8
@ -364,9 +364,14 @@ impl App {
|
||||
}
|
||||
match action {
|
||||
Action::Quit => {
|
||||
if self.television.mode == Mode::RemoteControl {
|
||||
self.action_tx
|
||||
.send(Action::ToggleRemoteControl)?;
|
||||
} else {
|
||||
self.should_quit = true;
|
||||
self.render_tx.send(RenderingTask::Quit)?;
|
||||
}
|
||||
}
|
||||
Action::Suspend => {
|
||||
self.should_suspend = true;
|
||||
self.render_tx.send(RenderingTask::Suspend)?;
|
||||
|
Loading…
x
Reference in New Issue
Block a user