assert filenames instead of seeing if it contains
This commit is contained in:
parent
ce06f50e56
commit
1d70e28c4e
|
|
@ -190,7 +190,10 @@ impl App {
|
|||
.queue_list
|
||||
.list
|
||||
.iter()
|
||||
.position(|x| x.file.contains(path));
|
||||
.position(|x| {
|
||||
let file = x.file.split("/").last().unwrap();
|
||||
file.eq(path)
|
||||
});
|
||||
|
||||
if index.is_some() {
|
||||
self.conn.conn.switch(index.unwrap() as u32)?;
|
||||
|
|
|
|||
Reference in New Issue