fix is_enabled being inverted

This commit is contained in:
Empire Phoenix 2025-05-19 12:16:18 +02:00
parent 9f48b46738
commit 4f4d15e4a4

View File

@ -80,7 +80,7 @@ impl TankState {
}
pub fn is_enabled(&self) -> bool {
matches!(self, TankState::Disabled)
!matches!(self, TankState::Disabled)
}
pub fn warn_level(&self, config: &TankConfig) -> Result<bool, TankError> {