11// Copyright (C) 2022 Kingtous
2- //
2+ //
33// This file is part of RustPlayer.
4- //
4+ //
55// RustPlayer is free software: you can redistribute it and/or modify
66// it under the terms of the GNU General Public License as published by
77// the Free Software Foundation, either version 3 of the License, or
88// (at your option) any later version.
9- //
9+ //
1010// RustPlayer is distributed in the hope that it will be useful,
1111// but WITHOUT ANY WARRANTY; without even the implied warranty of
1212// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1313// GNU General Public License for more details.
14- //
14+ //
1515// You should have received a copy of the GNU General Public License
1616// along with RustPlayer. If not, see <http://www.gnu.org/licenses/>.
1717
1818use std:: cmp:: max;
1919
2020use crossterm:: event:: KeyCode ;
2121
22- use crate :: { app:: { ActiveModules , App } , media:: player:: Player } ;
22+ use crate :: {
23+ app:: { ActiveModules , App } ,
24+ media:: player:: Player ,
25+ } ;
2326
2427pub fn handle_music_controller ( app : & mut App , code : KeyCode ) -> bool {
2528 // if app.active_modules != ActiveModules::MusicController {
@@ -39,7 +42,9 @@ pub fn handle_music_controller(app: &mut App, code: KeyCode) -> bool {
3942 player. next ( ) ;
4043 return true ;
4144 }
42- _ => { return false ; }
45+ _ => {
46+ return false ;
47+ }
4348 }
4449}
4550
@@ -57,6 +62,8 @@ pub fn handle_radio_controller(app: &mut App, code: KeyCode) -> bool {
5762 }
5863 return true ;
5964 }
60- _ => { return false ; }
65+ _ => {
66+ return false ;
67+ }
6168 }
62- }
69+ }
0 commit comments