feat: Full CLI and TUI support for the Lidarr Indexers tab
This commit is contained in:
@@ -125,7 +125,7 @@ impl<'a, 'b> KeyEventHandler<'a, 'b, ActiveRadarrBlock> for EditIndexerHandler<'
|
||||
.edit_indexer_modal
|
||||
.as_mut()
|
||||
.unwrap();
|
||||
if edit_indexer_modal.priority > 0 {
|
||||
if edit_indexer_modal.priority > 1 {
|
||||
edit_indexer_modal.priority -= 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ mod tests {
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.priority,
|
||||
1
|
||||
2
|
||||
);
|
||||
} else {
|
||||
assert_eq!(
|
||||
@@ -61,7 +61,7 @@ mod tests {
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.priority,
|
||||
0
|
||||
1
|
||||
);
|
||||
|
||||
EditIndexerHandler::new(
|
||||
@@ -80,7 +80,7 @@ mod tests {
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.priority,
|
||||
1
|
||||
2
|
||||
);
|
||||
|
||||
EditIndexerHandler::new(
|
||||
@@ -98,7 +98,7 @@ mod tests {
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.priority,
|
||||
0
|
||||
1
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user