mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-22 21:24:49 +02:00
other: Add config error if default_widget_count is not used with default_widget_type
This commit is contained in:
parent
01f65d378b
commit
d24a797ce9
@ -613,7 +613,9 @@ fn get_default_widget_and_count(
|
|||||||
Ok((widget_type, widget_count as u64))
|
Ok((widget_type, widget_count as u64))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Ok((None, 1))
|
Err(BottomError::ConfigError(
|
||||||
|
"cannot set 'default_widget_count' by itself, it must be used with 'default_widget_type'.".to_string(),
|
||||||
|
))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user